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

Update dashboard validation for Manifest V2 #10398

Merged
merged 2 commits into from
Oct 12, 2021

Conversation

mgarabed
Copy link
Member

What does this PR do?

Adds additional check for dashboards with Manifest V2 to check that the app_ids align correctly.

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@codecov
Copy link

codecov bot commented Oct 12, 2021

Codecov Report

Merging #10398 (751b8d3) into master (0e2b9b8) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Flag Coverage Δ
datadog_checks_dev 79.76% <50.00%> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

nmuesch
nmuesch previously approved these changes Oct 12, 2021
Copy link
Collaborator

@nmuesch nmuesch left a comment

Choose a reason for hiding this comment

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

Left one comment on a method that doesn't seem used, but otherwise LGTM!

Comment on lines +114 to +115
def get_path(self, path):
return self._manifest_json.get(path)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we using this get_path anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, but at one point in my PR I did - thought it would be useful to have so I left it.

Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

why changelog/Changed?

Comment on lines +27 to +29
# add version constants to avoid extra imports
V1 = V1
V2 = V2
Copy link
Contributor

Choose a reason for hiding this comment

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

where are these used?

Copy link
Member Author

Choose a reason for hiding this comment

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

https://github.com/DataDog/integrations-core/pull/10398/files#diff-e5ca44e5d121dd8240c03bc3064b8c0cc2a3f84fb899aa11c3516328bc635838R129

In the other file, by adding these enums here, it avoids an extra import statement which will also be helpful in other use cases

@mgarabed mgarabed merged commit d46143f into master Oct 12, 2021
@mgarabed mgarabed deleted the mg/update-dashboard-validation branch October 12, 2021 20:03
github-actions bot pushed a commit that referenced this pull request Oct 12, 2021
* Update dashboard validation for Manifest V2

* Handle embedded widget objects in dashboards d46143f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants