Commit Graph

1958 Commits

Author SHA1 Message Date
Silvio
e88cebd8e6 fix for filtering nested M2M relations (#11159) 2022-01-24 14:01:20 -05:00
Rijk van Zanten
47f71bd60b Update knex-schema-inspector (#11238) 2022-01-24 12:05:54 -05:00
ian
191d72c156 Fix nested transactions on SQLite (#11227)
* Fix nested transactions on SQLite

* Increase MSSQL request timeout
2022-01-24 10:16:32 -05:00
Nicola Krumschmidt
aa5da81fc0 Remove no-break space characters with regular spaces (#11232)
There are quite a few other occurrences all over the translation files,
some of which feel intentionally placed.
2022-01-24 09:43:57 -05:00
Rijk van Zanten
973e2dc6bb Update knex-schema-inspector (#11203) 2022-01-21 09:38:27 -05:00
Rijk van Zanten
88c87f3920 Set CRDB options to avoid inconsistencies between vendors (#11193)
* Set correct CRDB options

* Add missing SETs to pool config for e2e

* How about now

* Better solution for the same problem
2022-01-20 20:18:22 -05:00
rijkvanzanten
3cbe86d3f1 Mark CRDB as beta, mark oracle as ga 2022-01-20 18:29:08 -05:00
Nicola Krumschmidt
889668f972 Remove API extension types from the API (#11191)
There is little value in keeping these types inside the API package.
We should instead focus on improving the types in shared.
2022-01-20 22:19:52 +00:00
Azri Kahar
6368f641e5 Add CSV/JSON Import capability via App (#11050)
* Allow import data to collections via App directly

* clear file input after import

* tweak translations

* reduce vertical gap

* fix clear file input logic

* Change export data button text

* update start import button disabled color

* undo unintended changes to translations quotes

* add docs for importing items sidebar

* update exporting items docs

* Combine import/export sidebar details

* Remove unused import detail

* Fix docs

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-20 16:57:29 -05:00
Michael Schramm
75b5f33727 Implement CockroachDB support (#10113)
* 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>
2022-01-20 14:14:38 -05:00
John Huffsmith
e7ada1f173 Moving schema and relation types into shared package (#11179)
* moving schema and relation types into shared package

* updating SchemaOverview imports

* removing duplicate import
2022-01-20 13:36:19 -05:00
Aiden Foxx
ccd91de8c5 Removed unused session data (#11167) 2022-01-19 18:35:46 +00:00
Nicola Krumschmidt
b96fb77cbf Clean up emitting "items" events (#11163) 2022-01-19 13:17:48 -05:00
Azri Kahar
c40585c9c8 fix onIn values (#11129) 2022-01-19 11:36:16 -05:00
Aiden Foxx
f61ed2fb26 Fixed broken auth SQL on Oracle (#11077)
* Fixed broken auth SQL on Oracle

* Fix JS context issue

* Make linter happy
2022-01-17 16:25:56 -05:00
Aiden Foxx
35564ff36d Removed OpenID token fetching from OAuth flow (#11079)
* Removed OpenID token fetching from OAuth and unified logging

* Removed full-stops from logging
2022-01-17 14:41:59 -05:00
Nicola Krumschmidt
5ba34720e6 Only watch entrypoints of local extensions for changes (#11113)
Ref #11095
2022-01-17 18:24:16 +00:00
Nicola Krumschmidt
d95fc2327c Handle errors while pre-bundling App extensions more gracefully (#11112)
Fixes #11095
2022-01-17 13:14:02 -05:00
Azri Kahar
74bb4a7c9a Add Unsupported Media Type Exception (#11096)
* add unsuported media type exception

* throw error when not multipart/form-data

* use unsupportedMediaType when checking import file

* add `UNSUPPORTED_MEDIA_TYPE` to Error Codes docs
2022-01-17 10:09:26 -05:00
keesvanbemmel
ee7e678f24 Adds possible extra pino logger options through env vars (#10911)
* Added missing data field to sessions yaml

* rebased sessions.yaml

* Added custom pino logger options from env vars

* Added LOGGER_ explanation to docs

* Added similar functionality for pino http, so level of request logs can be set
2022-01-12 10:41:28 -05:00
Joe Innes
987442c03a Allow passing 'version' to Knex (#10960)
* Allow passing 'version' to Knex

* Exclude version from being passed into connection object
2022-01-10 17:23:35 +00:00
Nicola Krumschmidt
c2eefc524f Delete required hooks only once (#10955)
* Add dedicated options object to ExtensionManager

* Delete required hooks only once
2022-01-10 15:27:30 +00:00
rijkvanzanten
65bfe68b0c v9.4.3 2022-01-07 16:11:24 -05:00
Nicola Krumschmidt
42f26dc55f Add extension auto reloading to the API (#10881)
* Add extension auto reloading to the API

This can be enabled by using the `EXTENSIONS_AUTO_RELOAD` env var.

* Add logger message indicating watch mode

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-06 20:02:43 +00:00
Rijk van Zanten
e4db9b2f05 Fix refresh token payload structure on shared refresh (#10875)
Fixes #10822
2022-01-05 15:59:27 -05:00
Azri Kahar
60d3e12218 Add CSP directives for MapLibre to work (#10852) 2022-01-05 10:49:45 -05:00
Nicola Krumschmidt
e7deda78c5 Fix reloading hooks with schedule events (#10846)
Looks like `ScheduledTask.destroy()` was never part of `node-cron@3.0.0`.
2022-01-04 18:04:19 -05:00
Nicola Krumschmidt
6d9413e903 Fix running migrations in dev mode (#10847)
Fixes a regression introduced in #10836.
2022-01-04 16:56:36 -05:00
John Huffsmith
8a05018883 Left Join-ing on roles to allow users without roles to login (#10836)
* Left Join-ing on roles to allow users without roles to login

* moving filter logic to more appropriate location
2022-01-04 12:24:44 -05:00
José Varela
cc076494ff Check if is UUID before check permissions (#10837)
On checking permissions it reads the value from database, so we need to verify if is UUID before this process
2022-01-04 10:04:04 -05:00
Rijk van Zanten
4c1ac51e8b Default to upgrade-insecure-requests turned off (#10830)
Fixes #10806
2022-01-03 16:09:30 -05:00
Azri Kahar
66b8e1f3d3 fix file local type for displaysForType (#10821) 2022-01-03 11:32:24 -05:00
rijkvanzanten
1a5a9180ee v9.4.2 2021-12-30 21:11:32 -05:00
Wryn (yage) Wagner
b9636e3243 [#10500] update_users_me to graphql; added documentation for users/me update for both REST and graphql api (#10622)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-30 20:11:48 -05:00
Ben Haynes
cbe139d7e9 style tweaks (#10760)
* style tweaks

* fix linting

* Make project descriptor configurable

* Add missing import

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-30 19:40:38 -05:00
Rijk van Zanten
1481380775 Add warning when DB_CHARSET isn't explicitly configured (#10778)
* Add warning when DB_CHARSET isn't explicitly configured

Fixes #10556

* Improve messaging
2021-12-30 18:41:52 -05:00
rijkvanzanten
98cf1349fd Ensure prod app can run 2021-12-30 18:07:06 -05:00
Rijk van Zanten
ec86d5412d Add Content-Security-Policy header by default (#10776) 2021-12-30 16:51:49 -05:00
Rijk van Zanten
d84134c8a6 Don't force commandTimeout in redis based caches (#10773) 2021-12-30 15:32:05 -05:00
Rijk van Zanten
7833160348 Add ability to configure IP extraction (#10765)
* Add ability to configure IP extraction

* Add comment on ipv4 v ipv6

* Uninstall unused is-ip package
2021-12-30 11:34:49 -05:00
rijkvanzanten
4991ba858b v9.4.1 2021-12-28 20:17:21 -05:00
Rijk van Zanten
a5f64efb22 Fix data type inconsistencies in directus_shares table (#10740)
* 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
2021-12-28 18:32:27 -05:00
ian
8a0fba0691 Replace knex.fn.now() in DB queries (#10736) 2021-12-28 11:03:03 -05:00
Malte Jürgens
04c65e6d09 Fix Map Attribution Problems (#10696)
* Fix Map Attribution Errors

* Move "Limit" Dropdown to the left

* fix pagination styles

* move attribution to the left
2021-12-27 14:35:52 -05:00
Paul Boudewijn
02950ea32e exclude MS-SQL system table 'sysdiagrams' (#10713) 2021-12-27 18:50:05 +00:00
Paul Boudewijn
859d30f511 Fix debugging random portno (#10710) 2021-12-27 13:40:20 -05:00
Azri Kahar
15ffe6bd3f check system deny list in relations for GraphQL (#10674) 2021-12-24 13:21:49 -05:00
rijkvanzanten
a47b9cec0f v9.4.0 2021-12-23 22:46:18 -05:00
eikaramba
0ed76215b4 set statuscode to 204 if no content is send (#10569)
* set statuscode to 204 if no content is send

this is currently wrong for the DELETE Http Method in directus, which sends 200 status code although no content is served

* make linter happy

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-12-23 21:59:56 -05:00
Nicola Krumschmidt
589caf789b Move the app entrypoints to the assets directory (#10643)
The app's main js entrypoint was in the assets directory before.
I moved entrypoints one directory up to distinguish them from other chunks.
This is now done by using a `.entry.js` extension for entrypoints.

This also makes the shared dependency detection more robust.

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-23 21:57:49 -05:00