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

notice collection mat view #298

Merged
merged 3 commits into from
Oct 12, 2022
Merged

notice collection mat view #298

merged 3 commits into from
Oct 12, 2022

Conversation

Dragos0000
Copy link
Collaborator

No description provided.

@swarmia
Copy link

swarmia bot commented Oct 10, 2022

Copy link
Contributor

@kaleanych kaleanych left a comment

Choose a reason for hiding this comment

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

Looks good

@codecov-commenter
Copy link

Codecov Report

Base: 99.01% // Head: 99.01% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (0ceaddc) compared to base (4904633).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #298   +/-   ##
=======================================
  Coverage   99.01%   99.01%           
=======================================
  Files         106      107    +1     
  Lines        5485     5493    +8     
=======================================
+ Hits         5431     5439    +8     
  Misses         54       54           
Impacted Files Coverage Δ
...ices/create_notice_collection_materialised_view.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -143,3 +145,12 @@ def test_mongo_db_query_2():
])
for r in result:
print(r)

Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to anything (print(r)) in tests

create_notice_collection_materialised_view(mongo_client=mongodb_client)
db = mongodb_client[config.MONGO_DB_AGGREGATES_DATABASE_NAME]
assert NOTICES_MATERIALISED_VIEW_NAME in db.list_collection_names()
assert 'form_number', 'form_type' in db[NOTICES_MATERIALISED_VIEW_NAME].find_one().keys()
Copy link
Collaborator

Choose a reason for hiding this comment

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

decent expectation

@CaptainOfHacks CaptainOfHacks merged commit 411b59a into main Oct 12, 2022
@CaptainOfHacks CaptainOfHacks deleted the feature/TED-822 branch October 12, 2022 12:07
@sonarcloud
Copy link

sonarcloud bot commented Oct 12, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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.

5 participants