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

Type casting on date filter fix #138

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Type casting on date filter fix #138

merged 1 commit into from
Oct 29, 2024

Conversation

dogversioning
Copy link
Contributor

@dogversioning dogversioning commented Oct 29, 2024

  • Updates how we try to cast to dates from strings in the chart data endpoint Errors while using filters #136
  • Light cleanup on credentials from previous commit

Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
692 657 95% 90% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/dashboard/get_chart_data/filter_config.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 08d25ba by action🐍

@@ -29,7 +29,7 @@ def _put_s3_data(name: str, bucket_name: str, client, data: dict, path: str = "a
def create_auth(client, user: str, auth: str, site: str) -> str:
"""Adds a new entry to the auth dict used to issue pre-signed URLs"""
site_id = _basic_auth_str(user, auth).split(" ")[1]
return f'"{site_id}"": {{"site":{site}}}'
return f'"{site_id}"": {{"user": {user}, "site":{site}}}'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As soon as this became a hand managed process, having a username in here just for IDing the record became very valuable

@dogversioning dogversioning merged commit 042c129 into main Oct 29, 2024
2 checks passed
@dogversioning dogversioning deleted the mg/date-filter branch October 29, 2024 20:00
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