* base changes for cockroachdb
* allow creating of tables
* allow deleting of fields
* allow deleting of tables
* rebase
* fix migrations
* bump knex-schema-inspector to 1.7.0
* Update package-lock
* Add cockroach to debugging docker-compose file
* Remove unused import
* Tweak name in example.env
* Force nullable primary keys in cockroach
* Tweak shares migration to run on cockroach
* Rename var for clarification
* suggestion for migration helper
* change to schema and update remaining migrations
* Remove custom cockroach schema in favor of sharing with pg
* Fix migrations for CockroachDB
* Hopefully fix Oracle migrations 🤞🏻
* Make ~~aiden~~ oracle happy
* Resolve branching paths in migrations
* Enable tests for cockroach
* Fix test config
* One more config change for good measure
* Adjust test to match cockroach's bigint auto-int structure
* Increase request timeout for mssql
* Update api/src/database/helpers/schema/types.ts
Co-authored-by: Aiden Foxx <aiden.foxx.mail@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com>
Co-authored-by: Aiden Foxx <aiden.foxx.mail@gmail.com>
* Fix date resolution in share info endpoint
* Add note on leaving fields blank
* Tweak example to use proper db client
* Treat mysql 0000-00-00 00:00:00 as null
* Fix migration for mysql 5
* Add missing defaults to system fields
* 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
* 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>
* 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>
* 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>
* Implement translation for activity items
Fixes#8415
Also fixes issue with "Open item" link for system collection
* Fix 'Create New' btn translation in list interface
Fixes#8427
Default values needs to return a function to be dynamic
Same for "Empty item" translation
Also use field.name instead of field.field value for field title
* Fix translation of default values in boolean & dropdown interfaces
* Translate note field of system collections in edit mode
* Translate remaining "hard-coded" values
* Add dedicated translation for open folder
* Update app/src/interfaces/list/list.vue
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Use translate-object-values and check if collection starts with
'directus_'
* Use already existing translation keys for activity items
As discussed
* Translate whole data object if system collection
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Remove advanced filter sidebar detail
So long, and thanks for all the fish.
* Remove filter conversion logic
* Start replacing/removing old skool filters
* Add inline mode for usages in search bar
* Make filter work in header bar
* Emit empty string as null in filter
* Move shared filter types to shared
* Upgrade use-items
* Fix manual sort on tabular
* Cleanup styling in search bar usage
* Tweak styling
* Fix filtering issues
* Update cards
* Remove activeFilterCount from tabular
* Update maps to work with new filters
* Update calendar to new filter/sort structure
* Fix activity module nav/search
* Fix no-results message
* Update file library filtering
* Finalize user search
* Allow filtering in drawer-collection
* Handle cancelled responses semi-gracefully
* Add loading start state timeout
* Replace sort type in api
* Last commit before redoing a bunch
* Finish new visual style
* Remove unused rounded prop from v-menu
* Tweak sizing
* Enough size tweaking for now
* Count all filter operators instead of top
* Fix archive casting
* Fix api build
* Add merge filters util
* Split filter in user vs system
* Fix export sidebar detail
* Show field label on permissions configuration
* Add migration for filter/sort
* Use filters in insights
Fixes an issue when setting tile size for custom map.
```
Error: sources.aaaaa.tileSize: number expected, string found
at Object.Tn [as emitValidationErrors] (validate_style.js:37)
at Ue (style.js:46)
at i2._load (style.js:245)
at style.js:235
```
* Refactor action value from authenticate to login in directus_activity
* Fix incorrect where clause in migration
* Add missing authenticate uses
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>