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

Major dependency update #4806

Merged
merged 15 commits into from
Dec 16, 2024
Merged

Major dependency update #4806

merged 15 commits into from
Dec 16, 2024

Conversation

axelstudios
Copy link
Member

@axelstudios axelstudios commented Sep 19, 2024

What's this PR do?

  • Updates nearly all Python dependencies (except Django, and ones that rely on newer versions of Django/Python)
  • Adds a manage.py flush_db command that wipes all database contents (and restarts table sequences) except for static tables (EEEJ and Uniformat)
  • Removes vestigial django-autoslug dependency
  • Removes unused code/files
  • Removes deprecated NullBooleanField
  • Fixes sphinx spelling issues
  • Fixes sphinx-build on Windows
  • Updates tests
  • Fixed the following errors when visiting the Swagger page
    • <class 'seed.views.v3.sensors.SensorViewSet'> is not compatible with schema generation
    • <class 'seed.views.v3.tax_lot_properties.TaxLotPropertyViewSet'> is not compatible with schema generation
  • Fixes new Ruff issues
  • Fixes typos
  • Improves npm test to support both port 80 and 8000

How should this be manually tested?

Monkey test, tests should pass
For local testing, you'll (obviously) need to run pip install -r requirements/test.txt

@axelstudios axelstudios added DO NOT MERGE Maintenance Tag as maintenance if the issue relates to general cleanup, maintenance, etc. Do not delete label. labels Sep 19, 2024
@axelstudios axelstudios marked this pull request as draft September 19, 2024 20:03
@axelstudios axelstudios force-pushed the task/dependency-update branch 7 times, most recently from f2a92e2 to 4b1a23b Compare September 20, 2024 18:37
@axelstudios axelstudios marked this pull request as ready for review September 20, 2024 20:09
@axelstudios axelstudios requested a review from kflemin September 20, 2024 20:09
@axelstudios axelstudios force-pushed the task/dependency-update branch 2 times, most recently from 47b4ec1 to 855c2f0 Compare September 23, 2024 19:08
@@ -13,6 +13,9 @@


class SensorViewSet(generics.GenericAPIView, viewsets.ViewSet, OrgMixin, ProfileIdMixin):
# For the Swagger page, GenericAPIView asserts a value exists for `queryset`
queryset = Sensor.objects.none()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why none and not all? I see mostly alls in the existing codebase.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for the benefit of Swagger - it doesn't need to actually hit the database, it only needs the queryset property to exist

@@ -1076,7 +1076,7 @@ def test_get_location(self):
location, status = _get_location(self.property_view)
self.assertEqual(status, "success")
self.assertTrue(location is not None)
self.assertEqual(location, "730 Garcia Street, Boring, Oregon, 97080")
self.assertEqual(location, "1070 Hunt Street, Boring, Oregon, 97015")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious, why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this one comes from bumping Faker from v0.9.3 to v29.0.0. Somewhere along the way they changed their algorithm for generating addresses and such

@axelstudios axelstudios force-pushed the task/dependency-update branch 4 times, most recently from 6ce06d3 to 2722c8d Compare December 13, 2024 21:00
@axelstudios axelstudios force-pushed the task/dependency-update branch from 2722c8d to 6a64ce6 Compare December 13, 2024 23:25
@axelstudios axelstudios force-pushed the task/dependency-update branch from 6a64ce6 to 3c2cde8 Compare December 13, 2024 23:26
Copy link
Contributor

@kflemin kflemin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works on python 3.9.13!

@axelstudios axelstudios merged commit cdcd9c3 into develop Dec 16, 2024
9 checks passed
@axelstudios axelstudios deleted the task/dependency-update branch December 16, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Tag as maintenance if the issue relates to general cleanup, maintenance, etc. Do not delete label.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants