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

feat: add dimension and metric filters #186

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

nmorvil
Copy link
Contributor

@nmorvil nmorvil commented Apr 30, 2024

fixes #47

Copy link

sonarcloud bot commented Apr 30, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@nmorvil nmorvil changed the title add dimension and metric filters feat: add dimension and metric filters Apr 30, 2024
Copy link
Member

@edgarrmondragon edgarrmondragon left a comment

Choose a reason for hiding this comment

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

LGTM!

@edgarrmondragon edgarrmondragon merged commit 53cd5a0 into MeltanoLabs:main Apr 30, 2024
3 checks passed
edgarrmondragon pushed a commit that referenced this pull request May 5, 2024
This PR fixes the issue introduced by #186.

It was causing the tap to break if no metric filter or dimensions are
defined in the reports.json, or if these keys are defined with
_camelCase_ notation, which would be reasonable given it's a JSON file
and all the other dimension and metric values use _camelCase_ notation.

The issue was that the keys were defined with _camelCase_ on lines
113-114 on the `client.py` file when initializing the
`report_definition` dictionary, but it then tries to access them using
_snake_case_ notation on lines 267-268, which caused the tap to break
with an invalid key error.
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.

Support filters
3 participants