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

Feature/air monitoring app #301

Closed
wants to merge 57 commits into from
Closed

Conversation

juuso-j
Copy link

@juuso-j juuso-j commented Sep 11, 2023

Air monitoring APP

Imports, processes and serves air monitoring data


Breakdown:

Models

  1. air_monitoring/migrations/0001_initial.py
    • Initial migration
  2. air_monitoring/models.py
    • The model of the air monitoring APP
  3. air_monitoring/translation.py
    • Model translations

Importer

  1. air_monitoring/management/commands/constants.py
    • Management commands constants
  2. air_monitoring/management/commands/import_air_monitoring_data.py
    • Importer that import the air monitoring data and processes it to the database

API

  1. air_monitoring/api/constants.py
    • API constants
  2. air_monitoring/api/serializers.py
    • Add serializers
  3. air_monitoring/api/urls.py
    • Register urls to views
  4. air_monitoring/api/utils.py
    • Utility functions that are used by the views
  5. air_monitoring/api/views.py
    • Views

Documentation

  1. air_monitoring/README.md
    • Add README for the APP

Other

  1. air_monitoring/init.py
    • Add init
  2. air_monitoring/admin.py
    • Admin view for the models.
  3. air_monitoring/apps.py
    • AppConfig
  4. air_monitoring/management/commands/delete_all_air_monitoring_data.py
    • Management command to delete all air monitoring data
  5. air_monitoring/tasks.py
    • Celery tasks to import and delete data
  6. smbackend/settings.py
    • Add air monitoring logging, APP to installed APPs and make drf-spectacular documentation visible.
  7. smbackend/urls.py
    • Add air monitoring urls

Test

  1. air_monitoring/tests/conftest.py
    • Fixture data for API tests
  2. air_monitoring/tests/test_api.py
    • API tests
  3. air_monitoring/tests/test_importer.py
    • Importer tests

@juuso-j juuso-j added the enhancement New feature or request label Sep 11, 2023
@juuso-j juuso-j requested a review from ezkat September 11, 2023 07:03
@juuso-j juuso-j self-assigned this Sep 11, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch coverage: 85.31% and project coverage change: +1.49% 🎉

Comparison is base (955247e) 67.26% compared to head (d34af02) 68.75%.
Report is 21 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #301      +/-   ##
===========================================
+ Coverage    67.26%   68.75%   +1.49%     
===========================================
  Files          214      229      +15     
  Lines        12960    14118    +1158     
  Branches      1647     1745      +98     
===========================================
+ Hits          8717     9707     +990     
- Misses        3883     4039     +156     
- Partials       360      372      +12     
Files Changed Coverage Δ
air_monitoring/tasks.py 0.00% <0.00%> (ø)
.../management/commands/import_air_monitoring_data.py 72.15% <72.15%> (ø)
air_monitoring/admin.py 81.53% <81.53%> (ø)
air_monitoring/api/utils.py 83.78% <83.78%> (ø)
air_monitoring/api/views.py 86.00% <86.00%> (ø)
air_monitoring/models.py 91.52% <91.52%> (ø)
air_monitoring/api/constants.py 100.00% <100.00%> (ø)
air_monitoring/api/serializers.py 100.00% <100.00%> (ø)
air_monitoring/api/urls.py 100.00% <100.00%> (ø)
air_monitoring/apps.py 100.00% <100.00%> (ø)
... and 7 more

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@juuso-j juuso-j closed this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants