Commit Graph

10441 Commits

Author SHA1 Message Date
Pascal Jufer
baceedf201 Allow plain query flags for boolean & geo filter operators (#18888)
* Allow plain query flags for boolean & geo filter operators

* Create blue-wolves-tell.md

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-06-20 11:20:56 -04:00
Jan Arends
0fea5ab016 converted abstract sort modifier (#18938)
* converted sort

* update comment

* changeset

* change wording

* renamed converter tests

* updated docs

* Change changeset description

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

* docs

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-06-20 10:36:44 -04:00
Brainslug
562bcdfcb5 Expose WebSocketService for extensions (#18943) 2023-06-20 10:25:51 +02:00
José Varela
1ff15c49af App: Hydrate serverStore once (#18940)
* Hydrate `serverStore` once

* Add changeset

* Update .changeset/modern-boxes-sin.md

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-06-19 17:49:19 -04:00
Phil
5ad28818a2 #18930 - Fix to v-table show-select='one' (#18931)
* Fix(extension-sdk): v-table, if showSelect prop is set to 'one' then restrain selection list size to 1

* Feat: added myself to contributors and changeset

* Update .changeset/fair-years-itch.md

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-06-19 11:16:51 -04:00
Jan Arends
1cbae4952c Limit and offset modifiers for Postgres driver (#18894)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-06-19 15:51:12 +02:00
rijkvanzanten
10215abdd0 Fix dictionary 2023-06-14 18:12:13 -04:00
Brainslug
9d27e95686 Fix websocket with $CURRENT_USER permissions (#18901) 2023-06-14 14:24:44 +00:00
Pascal Jufer
44e794ba96 Add stub test for new @directus/themes package (#18889) 2023-06-13 15:47:24 -04:00
Rijk van Zanten
c314e7d774 Boilerplate @directus/themes (#18887)
* Start on @directus/themes

* Implement theming in app

* Reduce initial ruleset

* Remove test changes from app

* Nothing to see here

* Use appearance in deciding default theme

* Setup typedoc integration

* Add a wip warning
2023-06-13 14:54:29 -04:00
Rijk van Zanten
f0bc2a4803 Setup boilerplates for new components package (#18884)
* Setup boilerplates for new components package

* Fix readme

* Add test fallback
2023-06-13 14:14:19 -04:00
rijkvanzanten
c0cd7860b1 v10.3.0 v10.3.0 2023-06-13 12:52:12 -04:00
Rijk van Zanten
f33facd2da New Crowdin updates (#18781)
* Update source file en-US.yaml

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hebrew)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Mongolian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Serbian (Cyrillic))

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Khmer)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Malay)

* New translations en-US.yaml (English, Canada)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Faroese)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Breton)

* New translations en-US.yaml (Bosnian)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Bengali, India)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Spanish, Latin America)

* Update source file en-US.yaml

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Albanian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Norwegian)
2023-06-13 12:50:34 -04:00
Pascal Jufer
361e733790 Support multiline summaries in release notes generator (#18881)
* Support multiline summary in release notes generator

* Create cool-laws-share.md
2023-06-13 12:49:23 -04:00
Pascal Jufer
1124f9869a Clean-up changesets (#18882)
* Clean-up changesets

* Update .changeset/eleven-cougars-sparkle.md

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

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-06-13 12:48:52 -04:00
Rijk van Zanten
bc7e92e4b0 Add boilerplates for da project (#18642)
* Move data types to data package

* Setup boilerplate for driver

* Add basic data manager class

* Rename "datastore" to "store"

* Rename "fieldNodes" -> "nodes"

Opinions incoming!

* Setup manager basics

* fix pnpm-lock file

* Regenerate pnpm-lock file with pnpm v8.5

* add flowchart diagram

* revert flowchart diagram

* Add a basic data driver for PostgreSQL (#18808)

* add very basic query builder

* Start new data-sql package

* Start noodling

* Results of friday collab session

* add tests and separate function

* add flowchart diagram

* fix tests

* dependency diagram and fix

* add tsdocs

* fix query builder test

* small refactoring

* add underlying error in error message

* add tests for escape function

* add check if pool has a client to query the db

* revert tests, query func handles clients itself

* Update packages/data-sql/package.json

* Resolve comments

* Pass query

* Add tsup

* Remove compileroptions with tsup usage

* Split up converter

* Update graph

---------

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

* Improvement: Add albanian language translation (#18810)

* Add albanian to available languages

* Add me as contributor (CLA)

* Create fair-clouds-exercise.md

---------

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

* Add extra type check in apply-diff (#18783)

* Fix content filter between (#18821)

* fixed incorrectly typecast value

* Create popular-toes-tap.md

* Created new contribution pages for non-code contributions (#18820)

* Community

* Fixed copy in community page

* Sponsrship and advocacy

* Clarified 80/20 rule in support page

* Reworked contribs intro

* Contributing sidebar

* Remove backing directus page

* Translations updates

* Spell check

---------

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

* Reuse S3 client and increase maxSockets (#18799)

* Reuse S3 client and increase maxSockets

* Update test to check for timeouts and non-2xx responses

* Create beige-olives-beam.md

* Fix unit tests

* Update packages/storage-driver-s3/src/index.ts

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

* Update .changeset/beige-olives-beam.md

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

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Switch to tsup builds

* Don't require connect/disconnect

* Add test for engine

* Fix tests

* Cleanup tests

* Update tests

* Add destroy method

* Call register on register

* Tweak readme to drop connect

* Add changeset

* Wrapper function for random identifiers (#18870)

* add util function in data for random identifiers

* move wrapper into random package

* fix docs typo

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

* Rename to identifier and add test

---------

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

* Update packages/data/readme.md

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

---------

Co-authored-by: Jan Arends <jan.arends@mailbox.org>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Nino Gjoni <49320058+ninogjoni@users.noreply.github.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: ian <licitdev@gmail.com>
2023-06-13 11:10:47 -04:00
Rijk van Zanten
7f961d51ec Fix creating new relation when applying snapshot diff (#18879)
* Fix creating new relation when applying snapshot diff (#18692)

* Update apply-diff.ts

Collection and field might not be part of the dif but are mandatory

* Update contributors.yml

* Update apply-diff.ts

* prettier

* Add changeset

---------

Co-authored-by: gkielwasser <gkielwasser@gmail.com>
2023-06-13 10:51:58 -04:00
Agustin
57747f0c7e Fix reversing of _null, _nnull, _empty and _nempty (#18801)
* Fix reversing of _null, _nnull, _empty and _nempty

When the value given is false, at the moment both `IS NULL` and `IS NOT NULL` are added to the query which means there are never results.

* Update contributors.yml

* Add test for applyFilter with boolean operators

* Revert unnecessary line break

* Create chilled-wolves-double.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-06-13 10:18:50 -04:00
Connor
5e1f02dba1 Add TypeDocs to Docs (#18867)
* Create package

* TypeDoc Init Config

* Start Config

* Configure Packages

* Generation

* Add Plugins

* Vitepress Generation

* More Generation

* Fix Lock File

* Fix Connections

* Build Step

* Deployment Testing

* Fix Sidebar

* Fix Lock File

* Deployment Fix

* Change Sidebar

* Final POC/MVP Updates

* fix commands

* fix dev deps

* fix netlify functions

* CHANGELOG: Create warm-spiders-double.md

* Fix typing

* Remove double title

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-06-13 10:18:22 -04:00
Azri Kahar
92f2a9197e Recursively check permissions in isAllowed utility function (#18871) 2023-06-13 15:57:20 +02:00
Rijk van Zanten
0c5123ab96 Docs tweaks (#18868)
* Change logo to gray/white

* Reduce sizing of borders

* Notice colors

* Cleanup styling for feedback section

* Install material symbols

* Update card design

* Add standard margin

* Tweak purple dimm on darkmode

* Tweak notice spacing

* Tweak loading of icons
2023-06-12 18:30:15 -04:00
Ananta Krsna dasa
beba554a70 Fix collection name in quickstart.md (#18865)
* Update quickstart.md

Fix collection name.

* Update contributors.yml
2023-06-12 10:32:53 -04:00
Rijk van Zanten
d089b31a91 Update pull_request_template.md 2023-06-12 09:30:54 -04:00
cheddar
9a9f3684a4 Update sdk.md (#18862) 2023-06-11 23:09:30 -04:00
ian
b811cce425 Render calendar and map layouts correctly (#18853)
* Fix broken layouts

* Create blue-impalas-smell.md
2023-06-09 12:16:59 -04:00
Pascal Jufer
c0f595ed3b Fix Websocket GraphQL public auth (#18851) 2023-06-09 13:12:54 +02:00
Brainslug
cfddabd9ee Integrating Websockets in Directus 🕸️🧦 (#14737)
* added emitter context

* partial items tests

* updated items handler tests

* fixed test after merge

* forgot the event context

* fixed auth message parsing for graphql subscriptions

* fixed type strictness

* fixed graphql subscription bug

* bumped websocket dependencies

* touched up some dangling code

* updated itemsservice usage

* disabled overkill logs

* double checked environment type processing

* fixed missed capitalization

* fixed subscription payloads

* Added explicit string type casting

* removed obsolete "trimUpper" utility

* using the parseJSON utility consistently

* pinned dependencies

* parse environment variables

* fixed pnpm-lock

* GraphQL Subscriptions for all events

* fixed typo

* added event data to the graphql definition

* fix payload for delete events

* Added optional chaining for type to prevent fatal crashes on invalid messages

* fix failing on getting type from undefined

* Update api/src/websocket/exceptions.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Add proper ZodError handling

* added the zod-validation-error parser

* allow disabling the rate limiter

* Update api/src/websocket/controllers/base.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* updated starting logs

* fixed email/password expiration logic

* added tests for getMessageType

* simplified message parsing and dropped capitalization

* updated authenticate test

* switched to lower cased message.type to prevent spreading "toUpperCase" around

* cleaned up debug logs

* cast enabled config to boolean

* Update api/src/websocket/controllers/rest.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Update api/src/websocket/handlers/subscribe.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Update api/src/websocket/handlers/subscribe.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Update api/src/websocket/handlers/items.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Update api/src/websocket/controllers/base.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Update api/src/websocket/handlers/heartbeat.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Suggested fixes by Azri

* removed redundant try-catch

* fixed authentication timeout
added returning the refresh token when authenticating

* updated pnpm lock after merge

* Fixed authentication modes for GraphQL according to best practices

* implement useFakeTimers in heartbeat unit test

* implement useFakeTimers in items unit test

* Update api/src/services/server.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* removed obsolete authentication.verbose toggle

* added email flag to message validation

* switched to ternary for consistency

* moved getSchema out of for loop

* added singleton logic to items handler

* close the socket after failed auth for non-public connections

* disabled system collections for rest subscriptions

* re-ran pnpm i

* allow for multiple subscripitions in the memory messenger

* - fixed system collection subscriptions
- abstracted hook message bus
- fixed graphql horizontal scaling

* remove logic from root context for tests

* fix reading created item

* fix linter

* typo and extra safe guard suggested by azri

* prevent setting long timeouts in favor of a shared interval

* prevent unsubscribing all existing subscriptions when omitting "uid"

* - extracted getService utility
- block system collections mutation in the items handler
- implemented the correct services for system collections

* allow numeric uid's to be used

* fixed the types for numeric uid's to be used

* added missing await's

* fixed type imports after merge

* removed unused imports

* Update api/src/websocket/controllers/hooks.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Update api/src/websocket/controllers/hooks.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Update api/src/messenger.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* improved error for graphql subscriptions

* fixed TS Modernization conflicts

* fixed TS Modernization conflicts

* fixed conflicts after merge

* removed unused name property

* abstracxted environment configuration

* respond to ping messages when heartbeat disabled

* something something merge

* moved toBoolean to it's own util file

* replaced old socket naming

* removed old exception

* fixed typo

* Update api/src/env.ts

Co-authored-by: ian <licitdev@gmail.com>

* Update api/src/websocket/handlers/heartbeat.test.ts

Co-authored-by: ian <licitdev@gmail.com>

* Update api/src/websocket/handlers/heartbeat.ts

Co-authored-by: ian <licitdev@gmail.com>

* Update api/src/services/server.ts

Co-authored-by: ian <licitdev@gmail.com>

* fixed for linter

* add server_info_websocket in graphql

* Add base REST websocket tests

* do merge things

* fixing things

* fixed failing unit test

* Update dependencies

* Move tests

* Update lockfile

* Use new paths when spawning

* return websockets to opt-in

* Enable websockets for tests

* Test with ephemeral access token

* no camelcasing gql subscriptions

* use underscore for gql event

* Remove unused import

* Add base GraphQL subscription tests

* Fix accidental comment

* Add some relational tests

* Organize imports

Using VS Code's default organize import

* Run ESlint formatting

* One more opinionated formatting change

* Formatting

* Fix message sequence not in order

* Remove relational batch update tests

* Test horizontal scaling

* using toboolean util for server_info

* removed unneeded type cast

* found the gql request type

* extra usage of the toBoolean util

* merge the authentication middleware and get-account-for-token util

* updated utility test

* fixed middleware unit test

* Add return

* Remove user filtering and close conns

* Fix reused accountability

* fixed failing util test

* added subscription unit tests

* added missing mock

* trigger workflow

* Revert "trigger workflow"

This reverts commit 4f544b0c1b.

* Trigger testing for all vendors

* add unsubscription confirmation

* Wait for unsubscription confirmation

* Fix incorrect sending of unsubscription confirmation

* updated ubsubscribe logic

* Update count for unsubscription message

* Fix sequence for UUID pktype in MSSQL

* Increase auth timeout

* Add start index when getting messages

* Fix subscription retrieval and cast uid to string

* Remove nested ternary

* Revert "Increase auth timeout"

This reverts commit 10707409c4.

* Terminate connection instead of close

* fixed merge

* re-added missing packages after merge resolve

* fixed type imports

* Create lazy-cows-happen.md

Added changeset

* Minor bump for "directus" package as well

* fixed "strict" auth mode for graphql subscriptions

* removed nested ternary

* Add websocket tests to sequential flow

* Disable pressure limiter for blackbox tests

* fix merge

* WebSockets Documentation (#18254)

* Small repsonsive styling fix on Card

* REST getting started guide

* Authentication guide

* REST subscription guides

* JS Chat guide

* Sidebar websocket guides section

* Added config options

* Respoinding to brainslug's review

* Fixed incorrect header on guides/rt/subs

* Fixed spellchecker

* Correct full code example on guides/rt/chat/js

* Fixed JS chat tut

* Order of steps in js chat guide updated for easier following-along

* Realtime chat Vue Guide

* feat: create react.js file

* feat: add set up for directus project

* docs: create react boilder plate

* docs: initialize connection

* docs: set up submission methods

* docs: establish websocket connection

* docs: subscribe to messages

* docs: create new messages

* docs: display new messages

* docs: display historical messages

* docs: next steps

* docs: full code sample

* docs: clean up

* docs: add name to contributors

* docs: add react card

* docs: updates to react chat

* Added live poll result guide

* docs: intro

* docs: before you begin

* docs: install packages

* docs: authenticate connection

* docs: query and mutation

* docs: utilize hooks

* docs: subscribe to changes

* docs: create helper functions

* docs: display messages

* docs: summary

* docs: full sample code

* chore: add card for webscockets with graphql

* docs: intro

* docs: subscribe to changes

* docs: handling changes

* docs: crud operations

* docs: unsubscribing from changes

* docs: updates

* chore: add card

* chore: updates to graphql docs

* chore: updates to getting started

* chore: updates to subscription

* chore: updates to real chat guide

* Added WebSockets Operations Guide

* Consistent titles

* Contributors component for docs

* Triggering Netlify

* Add operations to sidebar

* Fix operations link

* Small formatting changes

* Clarity around property values

* Removed unused values in Contributors component

* Prompt for default choice

* Tabs & lowercase doctypes

* Semicolons

* Event overwerites -> event listeners

* Spacing

* Flipped order of websockets guide to match GQL

---------

Co-authored-by: Esther Agbaje <folasadeagbaje@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* fixed typo

* removed unused import

* added tests for "to-boolean" and "exceptions"

* added websocket service tests

* quote environment variable to satisfy dictionary

* GraphQL Subscriptions update (#18804)

* updated graphql subscription structure

* updated graphql examples

* Create hungry-points-rescue.md

* using `key` instead of `ID` on the toplevel

* removed changeset

* fixed the graphql type after the rename to `key`

* retrun data null for delete events to prevent non-nullable gql error

* updated missed ID reference in the docs

* updated missed ID reference in the docs

* renamed "payload" to "data" in the REST Subscription response

* fixed missed reference to payload

* added optional event filter for REST subscriptions

* updated docs for event filter

* Update docs/guides/real-time/subscriptions/websockets.md

Co-authored-by: ian <licitdev@gmail.com>

---------

Co-authored-by: ian <licitdev@gmail.com>

* added messenger unit test

* always send subscription confirmation

* Add event to subscription options

* Update tests

* Add tests for event filtering

* Revert testing for all vendors

* Remove obsolete console comment

* Update comment

* Correct event in JS WS guide

* Fix collection name to match name used in subscription

* Fix collection name in other guides

* Fix diffs in doc & enhance chart example

* Complete sentence in GraphQL guide

* Small update to config description

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Nitwel <mail@nitwel.de>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Esther Agbaje <folasadeagbaje@gmail.com>
2023-06-08 18:54:50 +00:00
Bryant Gillespie
0606b93fcc Content Translations + a few fixes for old CMS packet (#18834)
* fix publish date field for scheduling guides

* content translations

* Update content-translations.md

* fix spelling
2023-06-07 20:43:22 +00:00
Rijk van Zanten
07a84dd6c4 Break ground on @directus/stores (#18829)
* Setup @directus/stores

* Move appStore to @directus/stores

* Add changeset

* Initial version

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-06-07 12:32:39 -04:00
ian
4249bc7734 Fix existing milestone error (#18828) 2023-06-06 15:46:46 -04:00
ian
79a915301e Automatically assign next release milestone (#18827)
* Automatically assign next release milestone

* Automatically create milestone

* Rename workflow job

* Update to latest version
2023-06-06 15:31:19 -04:00
ian
c48405f0c3 Reuse S3 client and increase maxSockets (#18799)
* Reuse S3 client and increase maxSockets

* Update test to check for timeouts and non-2xx responses

* Create beige-olives-beam.md

* Fix unit tests

* Update packages/storage-driver-s3/src/index.ts

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

* Update .changeset/beige-olives-beam.md

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

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-06-06 16:44:12 +00:00
Kevin Lewis
14696c1f1e Created new contribution pages for non-code contributions (#18820)
* Community

* Fixed copy in community page

* Sponsrship and advocacy

* Clarified 80/20 rule in support page

* Reworked contribs intro

* Contributing sidebar

* Remove backing directus page

* Translations updates

* Spell check

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-06-06 12:19:47 -04:00
Brainslug
5a0032f606 Fix content filter between (#18821)
* fixed incorrectly typecast value

* Create popular-toes-tap.md
2023-06-06 19:18:02 +08:00
Brainslug
9d8f29b792 Add extra type check in apply-diff (#18783) 2023-06-05 15:05:00 +02:00
Nino Gjoni
1b8f179bad Improvement: Add albanian language translation (#18810)
* Add albanian to available languages

* Add me as contributor (CLA)

* Create fair-clouds-exercise.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-06-05 11:13:04 +02:00
Pascal Jufer
8f7202d9c3 Update version of pnpm & stricter engine requirement (#18800) 2023-06-02 09:52:57 -04:00
ian
cd344baac4 Fix parsing of Error objects when redacting (#18777)
* Fix parsing of Error objects when redacting

* Create perfect-ducks-add.md

* Move errorReplacer into redact util

* Use unknown instead of any

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-31 08:40:32 -04:00
Rijk van Zanten
d6c0d31b39 Add auto-closer for stale issues (#18780)
* Add auto-closer for stale issues

* Tweak name

* Tweak language
2023-05-30 16:23:43 -04:00
Pascal Jufer
05d901a3dd Support adding additional notices to release notes via changesets (#18726)
* Support adding additional info to release notes via changesets

* Update test

* Simplify regex since summary is already trimmed by changesets

* Simplify again, split up into new util & add test

* Add comment to regex

* Enhancements

- Better terms: Use "notice" instead of "info"
- Support placing notice everywhere in the summary
- Enhance format of notices in release notes

* Print notices under 'Potential Breaking Changes'

* Update tests

* Update format

* Fix new lines & improve tests

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-05-30 12:43:08 -04:00
Connor
f667fe7658 Contributor Docs Improvements Round 2 (#18667)
* add delete by query information and examples

* add that changelogs should be past tense

* add examples of unit and blackbox tests

* add information on where upload/extension folder should go locally

* add new packages and remove redundant column

* fix spelling

* Create hot-pillows-tan.md

* Fix tip box and links

* Update docs/contributing/codebase-overview.md

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

* Update docs/contributing/running-locally.md

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-30 12:30:58 -04:00
Kevin Lewis
c5b1c9890a Add required and recommended minimum specs for self-hosting (#18773)
* Add mninimum specs

* Add vCPU to dict

* Fix typo

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-30 15:28:28 +00:00
ian
faca64db21 Fix empty image selection error for file-image interface (#18761)
* Fix empty image selection error for file-image interface

* Add changeset

* Update app/src/interfaces/file-image/file-image.vue

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-05-30 15:13:09 +00:00
Craig Harman
90f7674152 Fix duplicate brackets for Storybook link (#18764)
* Fix duplicate brackets for Storybook link

* Sign the CLA

* Create gentle-goats-lay.md

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-05-30 09:54:43 -04:00
Pascal Jufer
ef9aa341c3 Enhance version comparison in the update notifier (#18748)
* Enhance version comparasion in the update notifier

* Create twelve-ghosts-juggle.md
2023-05-26 18:06:15 -04:00
rijkvanzanten
619d1f5726 v10.2.1 v10.2.1 2023-05-26 14:21:39 -04:00
rijkvanzanten
0f5753c608 Add changeset to force npm publish 2023-05-26 14:19:17 -04:00
rijkvanzanten
ca73cc976e v10.2.0 v10.2.0 2023-05-26 13:17:06 -04:00
Brainslug
f96dcc361f Translation string performance (#18097)
* broken migration

* fixed migration

* created new endpoints for translation strings

* updated to use core endpoint

* bad attempts at making the endpoints sensible

* merge changes

* implemented translation strings service

* re-integrating app logic part 1

* re-integrating app logic part 2

* fixed bad lodash import

* re-integrating app logic part 3

* removed obsolete tests

* make the linter happy

* Create tender-trees-buy.md

* added option to search-input

* implementing search

* fixed resizing and sidebar

* Fix linting

* Remove unused translations update into project settings

* Fix missing translations

* Require read permissions for app access

* Fetch translation strings only when authenticated

* Fix project default language not used when user has default language

* Remove commented line

* Rename variable as content has been changed

* Make the current user check more specific

* Remove translation_string from Settings type

* Remove settings reference in docs

* Update changeset

* Rename migration file to ensure date order

* Rename collection, route, service, controller

* Rename migration

* Adjust collection in settings route

* Fix translations service

* Use new `shouldClearCache` util

* Drop translation_strings column in migration

Co-authored-by: ian <licitdev@gmail.com>

* Added basic api docs

* updated dictionary

* updated dictionary

* Update app/src/interfaces/_system/system-input-translated-string/input-translated-string.vue

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>

* Update app/src/modules/settings/routes/translation-strings/collection.vue

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>

* extracted getCurrentLanguage utility

* Use regular collections/items

* Use regular controller

* Fix item view

* Set correct system field config for translations

* Tweaks

* Use UUID

* Finish placeholders

* Use drawer-item

* Add create to the store

* Remove composables

* Add new placeholder

* Fix saving behavior

* Remove previous take

* Rename migration after merge of live preview

* Generate uuid when migrating

* Remove unused showFilter

* Fix linting

* Fix type warnings

* Not needed as settings no longer contain translation_strings

* Remove leftover blank line

* Update getCurrentLanguage with server default and use in hydrate

* Shift getCurrentLanguage to lang folder to be alongside setLanguage

* add elipsis to placeholder

* Remove slug from key, so you can use dots etc in the key

* updated translation value to be type text again

* Rehydrate fields for updated translation values

* Add tooltip

* updated documentation

* enforce key/language uniqueness in the TranslationService

* updated error message

* updated docs menu item to "custom translations"

* Dynamically fetch translation keys for input-translated-string interface

* use get current language in refresh

* Update docs/reference/system/translations.md

* Update docs/reference/system/translations.md

* Update .changeset/tender-trees-buy.md

* Fetch translation keys when new key is created

* Update api/src/services/translations.ts

* Remove translation_strings remnant

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

* mark key, language and value as required

* correctly mark fields as required

* Catch duplicate key error when creating from input

* Translate translations :-)

* Update tender-trees-buy.md

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-26 12:35:44 -04:00
Rijk van Zanten
0be665d2f8 Update giant-ligers-nail.md 2023-05-26 12:22:04 -04:00