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

Amend docker setup for local fake data #390

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

braddf
Copy link
Contributor

@braddf braddf commented Jan 28, 2025

Pull Request

Description

Please delete the italicised instruction text!
Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration

  • Yes

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

  • Yes

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@braddf braddf requested a review from peterdudfield January 28, 2025 12:37
@braddf braddf marked this pull request as ready for review January 30, 2025 09:00
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.74%. Comparing base (32df9a4) to head (41acb27).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #390      +/-   ##
==========================================
- Coverage   94.20%   92.74%   -1.47%     
==========================================
  Files          23       23              
  Lines        1415     1447      +32     
==========================================
+ Hits         1333     1342       +9     
- Misses         82      105      +23     

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


# Check database has been created, if not run the migrations
if not inspect(connection.engine).has_table("status"):
connection.create_all()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a warning print statement in here, saying I'm making SQL tables. Just so its clear for people

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it's about to create ~10+ tables, so any print statements here will be gone immediately... if we actually want to warn the user before creating the tables, we'd have to change how this is set up

@peterdudfield
Copy link
Collaborator

Can you update PR description please?

@peterdudfield
Copy link
Collaborator

You could write a unit test for your new function of get_rounded_30_min_before_now if you want? That would be excellent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants