Add UPLOAD_DOCUMENT to default service perms#2956
Open
whabanks wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the API’s notion of “default enabled service permissions” so that newly created services include the UPLOAD_DOCUMENT permission by default (corresponding to the “Send files by email” setting in the UI).
Changes:
- Add
UPLOAD_DOCUMENTto theDEFAULT_SERVICE_PERMISSIONSused when creating a new service. - Update service REST tests to expect
UPLOAD_DOCUMENTin the default permissions returned by the service endpoints.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
app/dao/services_dao.py |
Adds UPLOAD_DOCUMENT to the default service permission list applied during service creation. |
tests/app/service/test_rest.py |
Updates assertions for default service permissions in list/detail service API tests to include UPLOAD_DOCUMENT. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jzbahrai
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary | Résumé
This PR adds the
upload_documentsetting to the list of default enabled service settings.Related Issues | Cartes liées
Test instructions | Instructions pour tester la modification
Send files by emailsetting is enabled by defaultRelease Instructions | Instructions pour le déploiement
None.
Reviewer checklist | Liste de vérification du réviseur