-
Notifications
You must be signed in to change notification settings - Fork 33
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
🏗️ Refactor: data folder #1509
Draft
Tansito
wants to merge
20
commits into
main
Choose a base branch
from
data-folder
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
🏗️ Refactor: data folder #1509
Conversation
This file contains 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
Merged
* First refactorization for files * Completed use cases for list end-point * Renamed storage to file_storage * Migrated files to file_storage * Migrated get files to the new service * Check if function exists first * Separated end-points to the new provider * Improved tests * Restore original fixtures * Solved the problem with the external if * Added Literal type in the FileStorage service * functions methods refactorization * use self.username instead of the variable * run path sanitization only one time * function title is mandatory for file storage * fix black * Updated 403 by 404 * Updated swagger for list * Makes use of enum with integers * use is instead of equals * unify path build * get_function refactor
Failing tests at this point of the development are expected. API changes will require client migrations. |
* new list files for the gateway refactor * unify files url * remove enum and linter * remove provider parameter * Check provider
* refactor of download end-points * additional test to check non existing file * renamed files test to v1_files * added additional checks for the query * included the checks in the list end-point * include swagger documentation updated * remove unneeded try except * make use of regex instead of a manual parsing * check not all instead of None * rename file_extension_is_valid * Update gateway/api/utils.py Co-authored-by: Goyo <[email protected]> --------- Co-authored-by: Goyo <[email protected]>
* add support to new delete files endpoints * fix get parameter * fix tests * delete programDelete fixture * update file_storage/remove_file description
* Update upload end-point * removed unused imports * updated comment in upload end-point
* add support to new upload file endpoints * replace data with params
* add support to new delete files endpoints * fix get parameter * fix tests * adapt files delete to the refactor * replace data with params * remove not used fixture
* add support to new delete files endpoints * fix get parameter * fix tests * adapt files delete to the refactor * replace data with params * remove not used fixture * tests fixed * fix client integration * fix context manager in files when download * added a new test for provider end-points * fix black * migrated old tests * Update gateway/api/services/file_storage.py Co-authored-by: Goyo <[email protected]> * remove additional line --------- Co-authored-by: David <[email protected]>
* create a trace decorator * fix decorator * change documentation --------- Co-authored-by: David <[email protected]>
* remove unneeded provider methods * create access policies file * refactor get_functions repository method * refactor groups and repositories * repository refactor from files * fix some linter problems * fixed a bug when the user retrieves a function * fix lint * refactor of get_function method * remove artifact test file * remove programs access policies * refactor programs references to functions * group repository refactor * rename groups repository into user repository * simplified get_function methods * fix query * adapt get_functions methods * updated comments * create path if doesn't exist * remove some unused code * fix files client * fix typos * fixed the creation of the directory * added a test for the provider end-points * fix some typos from the provider end-points * fix black on tests
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
TODO
Details and comments
TODO