-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Update dependencies (backend) #5642
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e025517
Update backend dependencies
tsmock fb44908
Replace nose with pytest
tsmock 1838590
Switch CI from nosetest to pytest
tsmock 3d63389
Add missing __init__.py files to tests
tsmock 689da91
Update python versions used in CI and docker images
tsmock ffea683
Fix gevent warning when run with gunicorn
tsmock c869ffc
migrations: Make compatible with SQLAlchemy 2.x
tsmock d623323
Update flask calls
tsmock 41e97b7
Shapely updates
tsmock 0793aff
ORM updates
tsmock 44e948e
Various fixes for test breakage
tsmock aa3ab89
geojson precision updates
tsmock 390ed7f
test_project: Add explanation for why the test is flaky
tsmock 1467c5a
ORM updates -- fix deprecation warnings shown in tests (and only thos…
tsmock c3bd7b8
CI: Set TM_ORG_CODE and TM_ORG_NAME
tsmock 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 |
---|---|---|
|
@@ -4,5 +4,8 @@ | |
**/__pypackages__ | ||
**/node_modules | ||
**/npm-debug.log | ||
logs/ | ||
**/venv | ||
docs-old/ | ||
docs/ | ||
frontend/ | ||
logs/ |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This file is not read for Tasking Manager variables. Use tasking-manager.env instead. | ||
# Flask (the web server framework) uses this file to figure out what the entry point is, | ||
# if it is non-standard. | ||
# For more information, see https://flask.palletsprojects.com/en/2.0.x/cli/#environment-variables-from-dotenv | ||
FLASK_APP=manage.py |
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ def get(self, project_id): | |
io.BytesIO(tasks_json), | ||
mimetype="application/json", | ||
as_attachment=True, | ||
attachment_filename=f"{str(project_id)}-tasks.geojson", | ||
download_name=f"{str(project_id)}-tasks.geojson", | ||
eternaltyro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
|
||
return tasks_json, 200 | ||
|
@@ -268,7 +268,7 @@ def get(self, project_id): | |
io.BytesIO(xml), | ||
mimetype="text.xml", | ||
as_attachment=True, | ||
attachment_filename=f"HOT-project-{project_id}.osm", | ||
download_name=f"HOT-project-{project_id}.osm", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note to reviewers: Change in flask 1.1x --> 2.3x |
||
) | ||
|
||
return Response(xml, mimetype="text/xml", status=200) | ||
|
@@ -341,7 +341,7 @@ def get(self, project_id): | |
io.BytesIO(xml), | ||
mimetype="text.xml", | ||
as_attachment=True, | ||
attachment_filename=f"HOT-project-{project_id}.gpx", | ||
download_name=f"HOT-project-{project_id}.gpx", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note to reviewers: Change in flask 1.1x --> 2.3x |
||
) | ||
|
||
return Response(xml, mimetype="text/xml", status=200) | ||
|
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
Oops, something went wrong.
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.
@Aadesh-Baral can you check if the other strtobool also need to be wrapped?
strtobool
returns an integer 1 or 0. Also, the distutils module has been deprecated in Python 3.12 and later. Ref: https://peps.python.org/pep-0632/