This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Enhancement/projects file upload #62
Merged
Merged
Changes from 56 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
12830d5
added query agent containing functions that can be used by multiple e…
AronBuzogany 81e3d3c
loading env variables is only necessary in __main__
AronBuzogany 658dfd3
removed unneeded load_dotenv
AronBuzogany 7dd5682
completed functions that are ought to be used by multiple endpoints o…
AronBuzogany e42c57d
simplified endpoint functions by using query_agent functions
AronBuzogany 3467bb2
fixed linting
AronBuzogany 69df26e
fixed urljoin incorrectly joining url
AronBuzogany e836f50
lint: removed trailing whitepsace
AronBuzogany e26c015
completely replaced functionality with query_agent functions
AronBuzogany fd941b2
added functionality for patching an entry in the database
AronBuzogany 073d6c5
fixed linting
AronBuzogany fd2ae83
filtered queries and forms to only contain entries that are valid in …
AronBuzogany d675fe6
created function that filters dict keys that are not in table
AronBuzogany 2298d8c
made class serializable
AronBuzogany d0e9a10
url query is not a valid authentication method, filtered out option
AronBuzogany 6b3e733
using query_agent functions to prevent code duplication
AronBuzogany a00cb99
split courses into multiple files to keep it organized
AronBuzogany f4aff02
fixed linting
AronBuzogany 4e0945f
added new courses blueprint
AronBuzogany 05038c9
removed trailing space
AronBuzogany a142a88
changed test to stay consistent with course admin relation also
AronBuzogany 1f11956
added query agent functions to prevent code duplication
AronBuzogany 7fad876
first version of file uploads
Gerwoud ca42936
formatting json for posting in the db
Gerwoud ed94408
Merge branch 'enhancement/endpoints-cleanup' into enhancement/project…
Gerwoud 8d75ae6
working file upload system, reused parser
Gerwoud 11377d1
fixed extracting of zip and uploading in project upload directory
Gerwoud bc6e4a9
fix
Gerwoud 62632be
fixed tests
Gerwoud 6f323ec
added test zip file
Gerwoud b5f8ef9
linter fixes
Gerwoud 72a9b7d
removed some test files
Gerwoud e1f79c7
Merge branch 'development' into enhancement/projects-file-upload
Gerwoud 12d0aa5
linter and test fixes
Gerwoud e1624b1
import depedency fix
Gerwoud 123992c
fix import order
Gerwoud 2c3a719
removed import getenv
Gerwoud 33880d6
removed valid_project function
Gerwoud 10b0c1a
fix fstring
Gerwoud 0edbd46
fix: upload_directory
Gerwoud 3438972
removed exist_ok=True
Gerwoud 8892d98
use path.join
Gerwoud c5e3bc4
added url field
Gerwoud 5c6a28d
fixed not checking for tuple type anymore
Gerwoud 0be828f
fixed env var for tests
Gerwoud adbb14b
fixed env var for tests
Gerwoud f0be949
fixed with statements
Gerwoud 220856f
using os.path.split instead of regular split
Gerwoud 8c848d6
added exist_ok
Gerwoud cb7eac1
i forgot :skull: fix lmao yeet
Gerwoud 6db6fad
i forgot :skull: fix lmao yeet
Gerwoud 058f53e
goofy augh fstring
Gerwoud 2314ff6
another small fix
Gerwoud 251ff29
fixed the 'not fixed eh' problem
Gerwoud f01fed9
linting
Gerwoud d53eef1
fix handling fail
Gerwoud dad7015
added try block
Gerwoud f4fe9fa
linter
Gerwoud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
patch_by_id_from_model | ||
|
||
|
||
|
||
API_URL = getenv('API_HOST') | ||
RESPONSE_URL = urljoin(API_URL, "projects") | ||
|
||
|
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
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
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
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
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
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
Binary file not shown.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not doing anything about if it fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dad7015