* Update geometric types and patch new field flow.
* Add migration
* Fixed migrations
* Also fixed migrations
* Update migration ID
* Cleanup type selector a bit
* Add missing fallback interface/display for new types
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* Move union query application to applyQuery, fix where clause
Fixes#9228
* Handle case where union IDs length = 0
* Return modified db query
* Apply union last
* [Fix]: Use hash instead of random for default index name
* Move hash function to separate util file
* Reduce max size of index name to 60 from 64
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* Move API entrypoint to typescipt
* Remove explicit cli exort from API
The "./*" export should export all subpaths, so explicitly exporting the cli shouldn't be necessary.
* Remove dedicated start script from API
This script isn't even included in the final npm package and it's only used by the test Dockerfile.
* Added reconnect handling code for LDAP
* Update api/src/auth/drivers/ldap.ts
* Improved error handling
* Updated re-bind so we can await it when required
* Added bind check before operations to ensure client has user
* Cleaned up reconnect handling in LDAP
* Minor cleanup
* Minor cleanup
* nullable boolean can now be set to null again after it weas true or false
* Implementation changed to Composition API
* Implementation changed to Composition API
* fixed formatting issues
* fixed formatting issues
* fixed formatting issues
* fixed formatting issues
* run linters on branch
* run linters on branch
* run linters on branch
* run linters on branch
* fixed formatting issues
* changes to checkbox interface reverted
* changes to checkbox interface reverted
* Update boolean.vue
* add set null to directus_files constraint
* SET NULL on created_by and modified_by
* "user_created" and "user_updated" => SET NULL
* SET NULL on collections optional system fields
* fixed dropColumn()
* Add line breaks, cause little OCD
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* Fix generated columns being required. Also prevent schema changes on generated columns.
* Fix type errors
* Disable `unique` and `nullable` instead of not showing them.
* Fix other type error
* Nullable check small refactor
* Fixed MSSQL query
* Fixed oracle query
* Add new grouping setup to interfaces
* [WIP] Start on new field flow
* Add preview svgs
* Update preview svg
* Add basic saving mechanism. Start on magic
* Add interface options to simple inputs
* Fix missing t
* Fix custom options not rendering
* Fix interface options overrides
* Sync m2o name key
* Setup m2o related collection input
* Add collections generation
* Add circular prevention & type syncing
* Small fixes in m2o context generation
* Move o2m options to fn structure
* Conclude o2m (i think)
* Start on toggle to advanced
* Style advanced toggle button
* Add localType File support, start documenting
* Add presentation/group localtypes
* Use function style interface options in m2m
* Don't require collection prop in field template component
* Implement most of m2m magic
* Restructure store updater
* Finish useFieldDetailStore restructure
* Only register root index in module folders
* Do the thing
* Finish m2m magic, tweak fallback styles
* Fix o2m display template setup
* Remove options comp for translations interface
* Show languages collection picker in translations
* Finish translations alterations
* Add magic for files type
* Officially wave goodbye to the old store setup
It served it's purpose, but what a nightmare to maintain. Welcome to the new version
* Update schema tab
* Add field pane
* Finish interface section
* Add display section
* Add conditions
* Update tabs to use localType from store
* Start on relationship tab
* Update m2m relational setup
* Start on m2o
* Finish m2o setup
* Finish o2m setup
* Add m2a magic
* Various tweaks
* Add m2a setup
* Add save button to advanced flow
* Load existing values on start
* Add upsert to stores, allow updating existing items
* Please the linter gods
* Remove seemingly redundant interface option
@Oreilles Seeing the geometry type is already configured in the schema configuration, this particular option on the interface feels redundant (?)
* Remove unnecessary option component overrides
* Track relationships in required fields for save state
* Fix relations previews on editing existing fields
* Use standard vs advanced for input options
* Remove note from simple field setup
* Add divider to field config
* Use background subdued
* Default required to false
* Add required icons to key/relationship
* Tweak colors
* Fix infinite loop in group creation
* Make setup responsive
* Allow switching interface at will
* Add m2a related collections picker
* Fix relations persisting on field deletion
* Add "Create in Advanced" shortcut
Just for you @joselcvarela
* Fix PK field staging on collection create
* Revert "Remove seemingly redundant interface option"
This reverts commit e5e09a051e.
* Fix map interface options
* Use default filter operator for type in filter input. Also fix error on geometry operator update.
* Fixed tests.
* Only reset geometry filter value when necessary
* Support `null` for boolean operators.
* 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>
* 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>
* Add migrations, start on service
* Dont track TODO files
* Update collection types, add collection type
* Allow drag and drop sorting of collections
* Add tooltip
* Add grouping + collapsed state
* Fix nested closed state
* Tweak active drag styling
* Remove collapsed state
* Add folder creation/editing
* Render collections as nested tree in nav
* Fix open active state
* Add dense when collection count > 5
* Add visible toggle
* Add show-hidden toggle
* Fix css specificity
* Add support for query in v-list-group
* Add missing cascade
* Remove collapsed state
* Finish three-way toggle
* Add custom lock icon
* Fix icon size in non-dense
* Redirect to first & open tree on load
* Dont make prop required
* Fix search
* Only apply archive filter when enabled in settings
* Add archive view
* Add translations
* Hide organization fields
* Show system collections
* Disable accountability for 'directus_activity' and 'directus_revisions'
* Use services to save accountability records
- Import ActivityService/RevisionsService in ItemsService and
ItemsService in ActivityService/RevisionsService from "./internal" to
prevent circular dependencies issue
- Use type PrimaryKey instead of number for onRevisionCreate method
(was already used to collect PrimaryKeys in payload.ts anyway)
* Use index.ts to load activity & revision services
* Use for instead of forEach
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>