Commit Graph

7064 Commits

Author SHA1 Message Date
rijkvanzanten
7c88f03884 v9.0.0-rc.99 v9.0.0-rc.99 2021-10-21 19:52:37 -04:00
Rijk van Zanten
3a85287237 Revert "Update dependency knex-schema-inspector to v1.6.3 (#9015)" (#9036)
This reverts commit a234198110.
2021-10-21 19:48:54 -04:00
rijkvanzanten
9b41257dcb Update example env 2021-10-21 17:48:01 -04:00
Aiden Foxx
fa3b1171e8 New OpenID and OAuth2 drivers (#8660)
* Moved over oauth impl to new interface

* Fixed most build issues and started addind schema to auth drivers

* Finished up OAuth2 and OpenID drivers

* Removed unused migration and utils

* Fixed minor todos

* Removed old oauth flow

* Changed oauth flow to re-use refresh token

* Added new oauth frontend

* Added font awesome social icons

* Updated authentication documentation

* Update api/src/auth/drivers/oauth2.ts

* Tested implementation and fixed incorrect validation

* Updated docs

* Improved OAuth error handling and re-enabled creating users with provider/identifier

* Removed Session config from docs

* Update app/src/components/v-icon/v-icon.vue

* Removed oauth need to define default roleID

* Added FormatTitle to SSO links

* Prevent local auth without password

* Store OAuth access token in session data

* Update docs/guides/api-config.md

* Fixed copy and removed fontawesome-vue dependency

* More docs fixes

* Crucialy importend type fiks

* Update package-lock

* Remove is-email-allowed check

In favor of more advanced version based on filtering coming later

* Fix JSON type casting

* Delete unused util

* Update type signature to include name

* Add warning when code isn't found in oauth url

and remove obsolete imports

* Auto-continue on successful SSO login

* Tweak type signature

* More type casting shenanigans

* Please the TS gods

* Check for missing token before crashing

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-21 17:45:01 -04:00
Oreille
1b64b4472a Bug fixes and improvements (#8995)
* Updated layout and interface mapbox style
* Fixed margin issues around the layout
* Use render-template component to display item popup on hover
* Fixed french translations
2021-10-21 15:30:13 -04:00
Rijk van Zanten
7897a7a1f5 Cast "DB_EXCLUDE_TABLES" to array (#9029)
Fixes #9001
2021-10-21 15:19:37 -04:00
renovate[bot]
f8587497d8 Update dependency ts-node to v10.3.1 (#9025)
* Update dependency ts-node to v10.3.1

* Update package-lock

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-21 15:10:39 -04:00
Oreille
1b0f75eec2 Fix o2m-resolver memory issue (#8944)
* Add limit to m2o fetching.

* Remove unused parameter

* Remove unused nested flag, move limit to apply

* Add limit to offset check

* Add usage note on union query

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-21 15:02:26 -04:00
Aiden Foxx
f6b250e25c Update users.ts (#9024) 2021-10-21 13:49:15 -04:00
Filip Prochazka
5741fcce57 Fix #8402 (#9012) 2021-10-21 13:37:08 -04:00
Oreille
bb0f4b1628 Sort child collections in navigation (#9002)
Fix #8983
2021-10-21 12:51:28 -04:00
renovate[bot]
a234198110 Update dependency knex-schema-inspector to v1.6.3 (#9015)
* Update dependency knex-schema-inspector to v1.6.3

* Update package-lock

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-21 12:47:36 -04:00
ian
20ec941fa8 Fix click on relational filters with children (#9007) 2021-10-21 12:35:48 -04:00
Oreille
7facfb1616 Fix error with table manual sort (#9010) 2021-10-21 12:31:00 -04:00
Rijk van Zanten
2318347206 Allow filesize display for bigInteger fields (#9019)
Fixes #9017
2021-10-21 12:21:33 -04:00
renovate[bot]
8b362c0383 Update dependency @types/lodash to v4.14.176 (#8989)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 20:59:14 -04:00
Jay Cammarano
43b0b9c62e E2E tests for the /items/:collection endpoint (#8549)
* added faker.js for testing

* edited env vars removed sqlite from testing (temp)

* getMany endpoint working with no data

* converted to faker

* getOne test passing

* schema for relations, item creation => factory

* many to many test working, factory refactored

* faker as dev dep

* new schema, tests passing postgres json exception

* tests passing

* upgrade tedious

* images

* removed images, rebuilt package-lock.json

* added users and schema map(WIP)

* user => artist m2o relation working on fields

* downgrade tedious

* user => guest, each => all

* items/:collection/invalid_id test

* items/invalid_collection/:id test added

* /:collection POST createOne test

* createMany factory, createMany endpoint test

* error handling tests

* create many with a many to one

* createMany with options to link relations

* some more describe sorting

* factory tests working

* tests passing
2021-10-20 23:20:50 +00:00
renovate[bot]
cce1c05b4c Pin dependencies (#8980)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 16:42:15 -04:00
Jay Cammarano
a379c77280 E2E Factories and Testing Migration and Seeding (#8912)
* added faker

* added factories and tests

* removed unnecessary factory

* new schema

* seedTable test

* included all dbs in db relevant tests

* json string for insert in dbs that aren't postgres

* added organizer

* polished up geometry types

* added raw option to seedTable return

* forgot await disonnect

* createMany func with test

* remove an only

* createMany w/ options for relations and tests

* tests for json field

* removed an only

* json support

* factories working, ignore tests leaving for future
2021-10-20 17:24:34 +00:00
Jay Cammarano
5c16ed20b9 E2E Schema generated through migration and seed files (#8853)
* schema now represented in migrations (untested)

* seeds (untested)

* added seeding and fixed seed id #s

* removed run-migrations, not migrating .ts files

* setup.ts runs with migrate and seed

* removed unneeded console.log()

* guest id is uuid, because I can

* added guest_events, changed user => guest

* updated column types

* removing system_tables migration file

* fixed many to one relation for favorite_artist

* added relational tables to collections

* fixed relations

* geometry fields

* updated schema
2021-10-20 11:44:04 -04:00
Pascal Jufer
88813a59d3 Add GitHub Action to Auto-Merge Translations from Crowdin (#8966)
* Add Action to Auto-Merge Translations from Crowdin

* Don't trigger checks on translation updates
2021-10-20 11:01:14 -04:00
renovate[bot]
71093f5d2e Update dependency @rollup/plugin-commonjs to v21.0.1 (#8958)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:53:04 -04:00
renovate[bot]
a9432b6db3 Update dependency @rollup/plugin-node-resolve to v13.0.6 (#8959)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:52:51 -04:00
Azri Kahar
c81300f786 improve folder picker selection highlight (#8954) 2021-10-20 09:51:28 -04:00
Tien Tran
b3f1e3383e Skip publish-npm job in the release workflow for forked repos (#8957) 2021-10-20 09:48:08 -04:00
renovate[bot]
8c6a7b1b3e Update jest monorepo to v27.3.1 (#8967)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:23:55 -04:00
Pascal Jufer
5a53d7007e Fix warnings from ESLint (#8969) 2021-10-20 09:23:42 -04:00
renovate[bot]
84ba3d0032 Update typescript-eslint monorepo to v5.1.0 (#8974)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:21:13 -04:00
renovate[bot]
f5b5b57e58 Update dependency @types/busboy to v0.3.0 (#8970)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:07:46 -04:00
renovate[bot]
30c1a64ed1 Update dependency eslint-plugin-vue to v7.20.0 (#8971)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:07:03 -04:00
renovate[bot]
52119fcd2d Update dependency vite-plugin-md to v0.11.2 (#8964)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Azri Kahar <azrikahar@outlook.com>
2021-10-20 19:00:01 +08:00
renovate[bot]
09bfefaff1 Update dependency vite to v2.6.10 (#8963)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 18:44:32 +08:00
renovate[bot]
9d137af1a0 Update dependency nock to v13.1.4 (#8961)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 18:03:20 +08:00
renovate[bot]
74fed8ce7f Update dependency pinia to v2.0.0-rc.14 (#8962)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 18:00:46 +08:00
Paul Boudewijn
deea6c787b Update iis.md (#8948)
the web.config example didn't work because the url value of the match element was not a valid regex.
2021-10-19 23:12:04 +00:00
Azri Kahar
2c0b61fdf3 add default preset for webhooks page (#8937)
* add default preset for webhooks page

* Apply suggestions from code review

* Update api/src/database/system-data/fields/webhooks.yaml

🤦🏻‍♂️

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-10-19 15:39:56 +00:00
Azri Kahar
1f34adc04b fix labels display for non-null empty value (#8938) 2021-10-19 11:35:26 -04:00
Azri Kahar
24c017184d show System Collections in empty Data Model page (#8936) 2021-10-19 11:30:43 -04:00
Azri Kahar
1ebd95519f hide folder-collections in permissions settings (#8939) 2021-10-19 11:20:04 -04:00
Ben Haynes
ac3e11ebb9 Tweak styling of the map layout (#8929)
* style updates

* update attribution styling
2021-10-18 20:19:40 -04:00
Rijk van Zanten
0b3dbff3d8 Fix missing display groups for file/image fields (#8927) 2021-10-18 16:30:39 -04:00
José Varela
331afb1b03 add schema to m2m and m2a (#8881)
since the API now expects a schema on body, we need to pass it in order to create respective tables
2021-10-18 12:42:51 -04:00
Sam Milledge
18d99a875a Fix settings page freeze when custom fields have a sort value (#8876) 2021-10-18 12:39:01 -04:00
Oreille
15aecbe438 Only unflatten item properties that needs to be unflattened (#8814)
* Only unflatten item properties that needs to be unflattened

* Delete leftover aggregate keys

* Update api/src/services/payload.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-10-18 12:32:57 -04:00
Azri Kahar
e3aa9fae2a Fix slug input (#8888)
* allow arrow keys in slug input

* enable preserveTrailingDash for slug input
2021-10-18 12:14:50 -04:00
Azri Kahar
c88db66282 Fix "Show Hidden Collection" context menu in collections navigation (#8889)
* fix collection navigation for context menu hitbox

* fix "show hidden collections" in collection nav

* Fix overflow issues in large collection sets

Nothing a bit of flex-tape can't fix

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-18 16:14:24 +00:00
Azri Kahar
69d9e3adfc hydrate permissionsStore only if user has role (#8893) 2021-10-18 11:45:36 -04:00
ian
7c205fdec0 Set missing refresh timeout (#8880) 2021-10-18 11:42:46 -04:00
renovate[bot]
6e3a63df2b Update jest monorepo to v27.3.0 (#8918)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 15:33:32 +00:00
renovate[bot]
1a83faf7e5 Update fullcalendar monorepo to v5.10.0 (#8772)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 15:30:33 +00:00