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

upcoming: [DI-19062] - Dashboard Select component in cloudpulse global filters view #10589

Merged
merged 5 commits into from
Jun 25, 2024

Conversation

nikhagra-akamai
Copy link
Contributor

@nikhagra-akamai nikhagra-akamai commented Jun 18, 2024

Description 📝

  1. Added Dashboard Selection component inside the Global Filters of CloudPulse view.

Changes 🔄

List any change relevant to the reviewer.

  1. Created a new component CloudPulseDashboardSelect.
  2. Added the component into the GlobalFilters of Monitor landing page.
  3. Added a new useCloudViewDashboardsQuery method to fetch all available dashboards.
  4. Added unit tests for the dashboard selection component.
  5. Removed the hard-coded service type passed to resource selection component into the global filters.
  6. Added a clearable option for region selection component

Target release date 🗓️

Please specify a release date to guarantee timely review of this PR. If exact date is not known, please approximate and update it as needed.

Preview 📷

Include a screenshot or screen recording of the change

💡 Use <video src="" /> tag when including recordings in table.

Before After
Screenshot 2024-06-18 at 5 41 15 PM Screenshot 2024-06-18 at 5 41 26 PM
Screenshot 2024-06-18 at 5 41 36 PM Screenshot 2024-06-18 at 5 41 49 PM

How to test 🧪

Prerequisites

(How to setup test environment)

  • ...
  • ...

Reproduction steps

(How to reproduce the issue, if applicable)

  • ...
  • ...

Verification steps

(How to verify changes)

  • ...
  • ...

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

Commit message and pull request title format standards

Note: Remove this section before opening the pull request
Make sure your PR title and commit message on squash and merge are as shown below

<commit type>: [JIRA-ticket-number] - <description>

Commit Types:

  • feat: New feature for the user (not a part of the code, or ci, ...).
  • fix: Bugfix for the user (not a fix to build something, ...).
  • change: Modifying an existing visual UI instance. Such as a component or a feature.
  • refactor: Restructuring existing code without changing its external behavior or visual UI. Typically to improve readability, maintainability, and performance.
  • test: New tests or changes to existing tests. Does not change the production code.
  • upcoming: A new feature that is in progress, not visible to users yet, and usually behind a feature flag.

Example: feat: [M3-1234] - Allow user to view their login history


@nikhagra-akamai nikhagra-akamai requested a review from a team as a code owner June 18, 2024 13:05
@nikhagra-akamai nikhagra-akamai requested review from bnussman-akamai and carrillo-erik and removed request for a team June 18, 2024 13:05
Comment on lines 8 to 13
setURL(
`http://blr-lhv95n.bangalore.corp.akamai.com:9000/v4/monitor/services/linode/dashboards`
),
setMethod('GET'),
setHeaders({
Authorization: 'Bearer vagrant',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this URL and credential a placeholder? I'm not sure this should be shipped

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed the url & creds

@@ -0,0 +1,2 @@
export * from './types'
export * from './dashboards'
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: could you and your team use editors that support editorconfig? Files should end in a newline and editorconfig will ensure this is the case. In the meantime, the newlines should be added/restored

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

Copy link
Contributor

@venkymano-akamai venkymano-akamai left a comment

Choose a reason for hiding this comment

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

LGTM

@nikhagra-akamai nikhagra-akamai requested a review from a team as a code owner June 19, 2024 07:21
@nikhagra-akamai nikhagra-akamai requested review from AzureLatte and removed request for a team June 19, 2024 07:21
),
setMethod('GET'),
setHeaders({
Authorization: '', //Authorization will be updated once the end-point is ready, till then will use mock data
Copy link
Member

Choose a reason for hiding this comment

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

If this is using API-v4 we should probably just remove this because Cloud Manager will handle setting the auth token

Copy link
Contributor

Choose a reason for hiding this comment

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

See also: https://linode.github.io/manager/development-guide/14-configuring-environments.html this will probably help a lot to ease the burden of switching between API environments during feature development

Copy link
Member

Choose a reason for hiding this comment

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

Optional: It might be nice to have jsdoc comments describing the fields

Copy link

github-actions bot commented Jun 20, 2024

Coverage Report:
Base Coverage: 83.12%
Current Coverage: 83.12%

@carrillo-erik
Copy link
Contributor

Nice job! Please include a changeset for the api-v4 package.

@cpathipa cpathipa merged commit 4579280 into linode:develop Jun 25, 2024
16 of 18 checks passed
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.

7 participants