Commit Graph

2168 Commits

Author SHA1 Message Date
Pascal Jufer
068591def0 Patch Happy Monday 🐸 (#21667) 2024-03-04 03:47:55 +01:00
Brainslug
77d73398f1 Session Based Authentication (#21239)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-04 01:59:45 +01:00
Michael Auerswald
251db70074 Clarified SAML warning if indentifier is not present in SAML response (#21552)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-02 19:24:39 +01:00
Pascal Jufer
001ec2e8d5 Enable JIT compiler for vue-i18n & disable legacy API (#21649)
* Enable JIT compiler for vue-i18n & shake off legacy API

* Add changeset

* Update comment about unsafe-eval
2024-03-01 11:39:12 +01:00
Pascal Jufer
79c2701a74 Drop uuid dependency in favor of Node.js built-in (#21625) 2024-02-29 05:07:20 +01:00
Riley Park
721c833b36 (#21573) Be more relaxed with UUID validation (#21613)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-02-29 03:34:13 +00:00
Pascal Jufer
5188153ea9 Fix storage initialization (#21590) 2024-02-27 09:13:00 +01:00
Pascal Jufer
7f4d431971 Fix permission merge (#21542) 2024-02-24 00:34:40 +01:00
Pascal Jufer
cef0406386 Fix issue where data from CSV imports can be corrupted (#21535)
* Fix corrupt CSV imports

* Do not destroy streams on success

* Add changeset
2024-02-23 11:32:22 -05:00
Azri Kahar
630a75b489 Fix app sending full field data when only some field properties have changed (#21385)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-02-21 00:37:17 +01:00
Daniel Biegler
d577b44231 Add validation for IP Access in Role settings (#21444) 2024-02-19 23:19:55 +01:00
Pascal Jufer
1e656c627c Adjust subscription async order to prevent handlers from being overwritten (#21479) 2024-02-19 22:33:44 +01:00
Riley Park
ae3e0a1e60 Fix last admin check in role modify (#21433)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-02-16 11:44:56 +00:00
Davian The Phoenix
450f923b18 Allow Flow Update data operation to update item bulk (unique values per item) (#21443)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-02-16 11:04:39 +00:00
Pascal Jufer
77346cf639 Clean-up request IP validation (#21370) 2024-02-14 15:37:51 +01:00
Brainslug
2c4883ae42 Filter system collections based on the system property (#21197)
Co-authored-by: Jan Arends <jan.arends@mailbox.org>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-02-14 14:40:57 +01:00
Pascal Jufer
cb36947d68 Move import task back to main thread (#21406) 2024-02-13 10:37:44 -05:00
Pascal Jufer
e373feafaa Fix role update admin check (#21343)
* Fix role update check for remaining admins

* Add changeset

* Fix default type for primary key on Alterations

* Update changeset

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* updated type casting

* updated type casting

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-02-13 12:18:01 +01:00
Rijk van Zanten
1136c20628 Support video files in public background (#21291)
* Return type information about public background

* Render public backgrounds as video as per type

* Don't authenticate the files service

* Add changeset

* Fix css layering

* Update types

* Update assets.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2024-02-09 14:09:45 +01:00
Pascal Jufer
56b809abe4 Fix item permissions check (#21152)
* Introduce permissions API endpoint to fix item permissions check

* Add changeset

* Revision

- Wrap API response in 'data' prop
- Split-up usePermissions composables & add tests
- Rework all permission checks

* Remove obsolete test

* Revision 2

- Singleton support
- Bug fixes
- Use permission composables wherever applicable
- Complete tests

* Update mock path in archive test

* Move remaining checks to usePermissions composables

* Update docs

* Lint & spelling fix

* Add SDK method

* Require authentication for getItemPermissions service

* Add blackbox tests

* Use multi-line if

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Format JSON code blocks

* Use correct type for computed values

Co-authored-by: Brainslug <tim@brainslug.nl>

* More explicit check & add comments

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-02-07 21:50:35 +01:00
Brainslug
ccbb34acd9 Fix public assets (#21360) 2024-02-07 16:09:18 +01:00
Rijk van Zanten
e888ba8112 Make sure IP extraction in server response hook is consistent (#21275)
* Use consistent IP tracking in server event

* Add changeset
2024-02-01 11:00:11 -05:00
Gerard Lamusse
b898f58b48 fix/mysql alter nullable issue (#20419)
* Keep column non-nullable on create/update relation

* Align code style

* Add changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-01-31 15:32:35 -05:00
Pascal Jufer
8db8241cc4 Update exif-reader to v2 (#20820)
* Update exif-reader to v2

* Add changeset

* Update changeset

* EXIF -> exif

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-01-31 15:24:38 -05:00
daedalus
c1da57a504 Fix @keyv/redis cache losing keys in high latency environments (#21136)
* fix redis cache losing track of keys in high latency env

* add changeset

* update changeset wording
2024-01-30 13:51:24 -05:00
Daniel Biegler
062c8f23f6 Add focal point support for images (#20768)
* add visual feedback for invalid value

* add focal point MVP

* Revert "add visual feedback for invalid value"

This reverts commit 1df1868342.

Accidently committed some local testing stuff. Pls disregard! :)

* fix wrong cropping

* fix text for new cropping, import correct type

* fix saving

* place initial focal point to saved value or center, display different cancel text

* split up tooltips

* honor rotations & flips when saving focal point

* apply custom cropper styles for focal mode

* Create loud-crews-fix.md

* add test and only crop when covering with fixed dimensions to preserve default behaviour

* linter gods pls forgive me

* replace json field with two int fields

* add focal point to sdk

* fix transformation for the two new db columns

* update test for new columns, add new tests

* wip: saving now differentiates between only img data and focal point and only enable saving if there are changes

but this is not optimal. would be better to check beforehand if we can collapse
to requests to one. Now its bad because
one request might succeed and the other fails.

* refactor image editor change persistence

now we save it in one request!

* Update loud-crews-fix.md

* add `focal_point_x` and `focal_point_y` to possible asset transformations

* fix assigning localdragmode upon cropper init

* reuse fetched fields in type

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* update file type

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* update changeset

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* improve type for `ASSET_TRANSFORM_QUERY_KEYS`

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Apply suggestions from code review

Trying out the batch change feature from github for the first time. Lets see.

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* rename `persistChanges` to `saveImage`

* Add docs for focal points (#20959)

* Add user guide

* Added to API Reference

* Prettier

* Spellchecker

* default null

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* from -> around

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* from -> around

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* add changeset for docs

* run prettier lets goooooooo

* move & show focal point fields and add divider

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
2024-01-22 18:35:06 +01:00
Pascal Jufer
1f4253432c Optimize extension auto-reloading (#21111)
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-01-22 16:07:07 +00:00
daedalus
b39964eda2 Do not queue any extension reloads if a reload job is pending (#20849)
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-17 11:59:46 +00:00
Pascal Jufer
3610a8dbc3 Maintain snapshot order (#21076) 2024-01-14 15:10:33 +01:00
Pascal Jufer
215c045184 Drop supertest in api (#21071) 2024-01-13 18:23:43 +01:00
Pascal Jufer
a6e2712e09 Use official abbreviation of Exif (#21030) 2024-01-10 14:42:40 +01:00
Mahendra Kumar
23da25321b fix(api): use payload updated with filter event for O2M processing (#20926)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-10 12:47:04 +00:00
ian
4a3a65cfde Add support for IP ranges and CIDR notations (#20971)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-09 00:44:09 +01:00
Rijk van Zanten
2c18b543d2 Move environment variable handling to new @directus/env package (#20985)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-07 04:35:58 +01:00
Rijk van Zanten
0b0db0f449 Deprecate Messenger in favor of shared Bus (#20862)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-06 23:49:38 +00:00
Pascal Jufer
a70ebc5aa7 Align extensions update endpoint (#20986)
* Align extensions update endpoint

* Add changeset

* Ensure meta is an object
2024-01-06 19:54:30 +01:00
daedalus
97dc0e2a20 Allow updating custom fields for directus_extensions (#20982)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-05 22:01:25 +01:00
Pascal Jufer
c9292fdd13 Various small codebase clean-ups (#20977) 2024-01-05 18:53:44 +01:00
daedalus
b189fd4594 Add enable/disable support for bundle type extensions (#20940)
* Add enable/disable support for bundle type extensions

* added changeset

* Update app/src/modules/settings/routes/extensions/components/extension-item.vue

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* add docs

* bundle with app extensions should display reload on prod

* use early returns for toggle logic

Co-Authored-By: Brainslug <br41nslug@users.noreply.github.com>

* add enable/disable all for partially enabled

* refresh message should work for enable and disable all

* Clearer tooltip for app extensions in dev

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-05 13:03:24 +01:00
José Varela
815e110f73 Api: Do not suspend user if rate limiter store is unreachable (#20958)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-04 16:41:37 +00:00
Mahendra Kumar
40b25bc81b fix(api) treat bigInt as string all across the system (#20888)
* fix(api) treat bigInt as string all across the system

* add changeset

* use bigint notations to declare last constant

* Update .changeset/small-poems-deny.md

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* moved constants to root context

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-01-04 13:14:10 +01:00
dependabot[bot]
d09586d4c7 Bump ws from 8.15.1 to 8.16.0 (#20905)
* Bump ws from 8.15.1 to 8.16.0

Bumps [ws](https://github.com/websockets/ws) from 8.15.1 to 8.16.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.15.1...8.16.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Disable new autoPong feature

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-03 10:08:56 +00:00
daedalus
5738589d60 Fix adding a new role on user update (#20913)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-30 00:28:21 +00:00
Pascal Jufer
0d1fd7c77e Remove obsolete temporary theme field permission (#20920) 2023-12-29 11:46:30 +01:00
daedalus
7e6f96f56b Remove admin only restriction for extension read operations (#20914)
* respect users permissions for list/get extensions

* add changeset
2023-12-29 00:22:25 +01:00
daedalus
99ea01aa74 Enable theme overrides permissions to be set on a per role basis (#20899) 2023-12-27 18:58:47 +01:00
Brainslug
60ea729957 Fix invite email error (#20891)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-27 11:33:26 +00:00
Rijk van Zanten
2b9056cc80 Refactor default import logger with useLogger (#20872)
* useLogger

* Rework to useLogger and no globals

* Only export useLogger / createLogger

* Temp remove logger tests

* Refactor logger

* Refactor logger

* Refactor logger

* Refactor logger use

* Fix tests

* Fix logger usage in bootstrap

* Run formatter

* Remove logger tests

Feels drastic, but I'm about to rewrite them into @directus/logger :)

* Fix log operation test
2023-12-26 11:38:38 -05:00
Yasser Lahbibi
7eb22a4f23 feat(ws): register hooks for versioning (#20865)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-26 15:18:09 +00:00
Mahendra Kumar
d24e0f03f0 fix(api): bigInt auto increment not being reset in postgres (#20867)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-26 15:20:43 +01:00