Commit Graph

7048 Commits

Author SHA1 Message Date
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
Oreille
e68acf5f5c Map layout and interface improvements (#8908)
- Improved marker resolution
- Make the default maker green
- Reduce popup padding in layout
- Capitalize geometry related translations
- Hide geometry_format and geometry_type when disabled
- Set geocoder search bar background color to `--background-page`
- Rename Activate clustering to Cluster Nearby Data
- Default Cluster Nearby Data to `true`
- Update cluster colors to match Directus colors
2021-10-18 11:16:46 -04:00
renovate[bot]
f3400bb54d Update dependency ts-jest to v27.0.7 (#8915)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 11:02:42 -04:00
renovate[bot]
3e771b2bd4 Update dependency vite to v2.6.9 (#8916)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 11:02:30 -04:00
ian
6db9e0cd7d Fix field duplicate typo (#8879) 2021-10-17 21:45:39 +08:00
Rijk van Zanten
acb3c3cb4b Issue/8858 (#8864)
* Fix collections endpoint not filtering EXCLUDE env

Fixes #8858

* Tweak spacing for db-only section

* Make solution less error prone
2021-10-16 21:46:41 +00:00
Daniil Yastremskiy
752689d32a Add geo operators to FilterOperators type (#8863) 2021-10-16 21:38:58 +00:00
Rijk van Zanten
567ce00922 New Crowdin updates (#8852)
* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Serbian (Latin))
2021-10-16 12:06:11 -04:00
Rijk van Zanten
5b59bce3b7 Update changelog.md 2021-10-15 20:15:01 -04:00
rijkvanzanten
0dd0e1b1c1 v9.0.0-rc.98 v9.0.0-rc.98 2021-10-15 20:13:07 -04:00
rijkvanzanten
fe6cc3bc93 Fix recursive relation constraint for MSSQL 2021-10-15 20:01:21 -04:00
rijkvanzanten
21f4d3cdef Fix scope in docs nav 2021-10-15 19:41:35 -04:00
Rijk van Zanten
5cb5e5bf4f Fix refresh problems on background outdated tabs (#8850) 2021-10-15 23:28:54 +00:00
Nitwel
bcbc55cf43 preload tree for display template properly (#8849) 2021-10-15 23:06:29 +00:00
rijkvanzanten
362c751e47 Add scope prop to v-list-item 2021-10-15 18:40:43 -04:00
Nitwel
fc985fa90a fix scoping of v-list-group to the same as v-list (#8848) 2021-10-15 18:39:47 -04:00
rijkvanzanten
39b95c1710 Fix default fields on layout switch 2021-10-15 18:30:22 -04:00