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

Add make targets for cleaning db and inserting fake data. #122

Merged
merged 21 commits into from
Jun 10, 2021

Conversation

0xAda
Copy link
Contributor

@0xAda 0xAda commented Jun 10, 2021

Adds make targets insert-data, insert-bulk-data, clean-db, and clean-test. Also speeds up the data insertion by roughly 2x

@0xAda 0xAda requested review from jerbob and Bentechy66 June 10, 2021 03:26
@codecov
Copy link

codecov bot commented Jun 10, 2021

Codecov Report

Merging #122 (ea10fdf) into master (1edfc14) will decrease coverage by 0.08%.
The diff coverage is 82.00%.

❗ Current head ea10fdf differs from pull request most recent head d5269eb. Consider uploading reports for the commit d5269eb to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
- Coverage   94.57%   94.49%   -0.09%     
==========================================
  Files         107      107              
  Lines        4570     4576       +6     
  Branches      258      260       +2     
==========================================
+ Hits         4322     4324       +2     
- Misses        208      211       +3     
- Partials       40       41       +1     
Impacted Files Coverage Δ
src/admin/tests.py 100.00% <ø> (ø)
src/andromeda/client.py 42.42% <0.00%> (ø)
src/authentication/basic_auth.py 100.00% <ø> (ø)
src/backend/renderers.py 50.00% <0.00%> (ø)
src/challenge/permissions.py 100.00% <ø> (ø)
src/config/backends.py 89.09% <0.00%> (-6.99%) ⬇️
src/plugins/tests.py 100.00% <ø> (ø)
src/ractf/apps.py 100.00% <ø> (ø)
src/stats/views.py 100.00% <ø> (ø)
src/challenge/views.py 69.67% <55.55%> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1edfc14...d5269eb. Read the comment docs.

Copy link
Member

@Bentechy66 Bentechy66 left a comment

Choose a reason for hiding this comment

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

lgtm

@0xAda 0xAda enabled auto-merge (squash) June 10, 2021 10:09
@thebeanogamer
Copy link
Member

That is both terrible practice and wont work because you have to pass coverage on the latest commit.

@0xAda
Copy link
Contributor Author

0xAda commented Jun 10, 2021

That is both terrible practice and wont work because you have to pass coverage on the latest commit.

this is common practice

@0xAda 0xAda merged commit 8e6a49c into master Jun 10, 2021
@0xAda 0xAda deleted the feature/bulkdata branch June 10, 2021 10:34
0xAda added a commit that referenced this pull request Sep 26, 2024
* Add make targets for cleaning db and inserting fake data.

* Update Makefile

* Set Plugin logs to INFO

* Add 'docopt' to dev-dependencies

* Update 'fake' script

* Update __init__.py

* Remove clean_db.py

* Update black line length (what's scope?)

* Remove clean_db.py

* Format scripts/fake

* Update scripts.fake

* Split long SQL statement

* Update __main__.py

* Update __main__.py

* Update __main__.py

* fix clean db

Co-authored-by: Jeremiah Boby <mail@jeremiahboby.me>
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.

4 participants