Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use public/_graphql/ subfolder #385

Merged

Conversation

chillu
Copy link
Member

@chillu chillu commented Jun 1, 2021

This is consistent with public/_resources which is also auto-generated by the CMS.
It enables sysadmins to lock down write access to public/ during runtime, with this potentially granular exception.
And it makes it easier to discover which part of the system is responsible for writing these files.

The change is backwards compatible with existing file locations,
although we probably want to remove that before going stable:
#384

Relies on equivalent PR to silverstripe/admin at silverstripe/silverstripe-admin#1222

The docs are already stating this new location so this was more of an oversight:
https://docs.silverstripe.org/en/4/developer_guides/graphql/getting_started/building_the_schema/#viewing-the-generated-code

This is consistent with public/_resources which is also auto-generated by the CMS.
It enables sysadmins to lock down write access to public/ during runtime, with this potentially granular exception.
And it makes it easier to discover which part of the system is responsible for writing these files.

The change is backwards compatible with existing file locations,
although we probably want to remove that before going stable:
silverstripe#384

Relies on equivalent PR to silverstripe/admin.

The docs are already stating this new location so this was more of an oversight:
https://docs.silverstripe.org/en/4/developer_guides/graphql/getting_started/building_the_schema/#viewing-the-generated-code
chillu added a commit to open-sausages/silverstripe-admin that referenced this pull request Jun 1, 2021
chillu added a commit to open-sausages/silverstripe-admin that referenced this pull request Jun 1, 2021
@unclecheese unclecheese merged commit 64d8d46 into silverstripe:master Nov 4, 2021
unclecheese pushed a commit to open-sausages/silverstripe-admin that referenced this pull request Nov 4, 2021
unclecheese pushed a commit to silverstripe/silverstripe-admin that referenced this pull request Nov 5, 2021
* Use new public/_graphql/ subfolder location

Relies on silverstripe/silverstripe-graphql#385

* Rebase and build

Co-authored-by: Aaron Carlino <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants