Merge branch 'main' into fix-21492-kanban-selection-mode

This commit is contained in:
Hannes Küttner
2024-08-26 20:03:46 +02:00
committed by GitHub
4 changed files with 17 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
---
"@directus/api": patch
---
Fixed the generated OpenAPI specs to include POST, PATCH and DELETE paths again

View File

@@ -61,7 +61,7 @@ class OASSpecsService implements SpecificationSubService {
}
async generate(host?: string) {
let schema = this.schema;
let schemaForSpec = this.schema;
let permissions: Permission[] = [];
if (this.accountability && this.accountability.admin !== true) {
@@ -70,22 +70,22 @@ class OASSpecsService implements SpecificationSubService {
accountability: this.accountability,
action: 'read',
},
{ schema, knex: this.knex },
{ schema: this.schema, knex: this.knex },
);
schema = reduceSchema(schema, allowedFields);
schemaForSpec = reduceSchema(this.schema, allowedFields);
const policies = await fetchPolicies(this.accountability, { schema, knex: this.knex });
const policies = await fetchPolicies(this.accountability, { schema: this.schema, knex: this.knex });
permissions = await fetchPermissions(
{ action: 'read', policies, accountability: this.accountability },
{ schema, knex: this.knex },
{ policies, accountability: this.accountability },
{ schema: this.schema, knex: this.knex },
);
}
const tags = await this.generateTags(schema);
const tags = await this.generateTags(schemaForSpec);
const paths = await this.generatePaths(permissions, tags);
const components = await this.generateComponents(schema, tags);
const components = await this.generateComponents(schemaForSpec, tags);
const isDefaultPublicUrl = env['PUBLIC_URL'] === '/';
const url = isDefaultPublicUrl && host ? host : (env['PUBLIC_URL'] as string);

View File

@@ -156,3 +156,4 @@
- maxbritto
- tennox
- maxsteinwand
- FatumaA

View File

@@ -16,9 +16,9 @@ accidentally work on the same issue at the same time.
## Choosing What to Implement
We welcome PRs for any open [Issue](https://github.com/directus/directus/issues). Issues labeled
["Good First Issue"](https://github.com/directus/directus/issues?q=is:issue+is:open+label:%22Good+First+Issue%22) are
typically easier to resolve for those who haven't contributed to the codebase before, and are therefore a great starting
point.
["Good First Issue"](https://github.com/directus/directus/issues?q=is:issue+is:open+label:%22:star:+Good+First+Issue%22)
are typically easier to resolve for those who haven't contributed to the codebase before, and are therefore a great
starting point.
## Implementing an Accepted Feature Request