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

Rename Panels => Observability Dashboard #380

Merged
merged 5 commits into from
Apr 18, 2023

Conversation

pjfitzgibbons
Copy link
Contributor

Description

Rename all references to Observability Dashboard
Includes OSD-core Dashboard registration of Observabiltiy Dashboards to Dashboards / Dashboards List

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment on lines 148 to 151
// .then((res) => res.operationalPanel)
// .catch((err) => {
// console.error('Issue in fetching the operational panel to duplicate', err);
// console.error('Issue in fetching the Observability Dashboard to duplicate', err);
// });
Copy link
Member

Choose a reason for hiding this comment

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

Can be removed, if not being used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Want to keep these until Toast re-imiplementation. THat's where I'll trap thte error handlers correctly.

Comment on lines 231 to 240
// // if (renamedCustomPanel) renamedCustomPanel.name = editedCustomPanelName;
// // return newCustomPanelData;
// // });
// // setToast(`Operational Panel successfully renamed into "${editedCustomPanelName}"`);
// // setToast(`Observability Dashboard successfully renamed into "${editedCustomPanelName}"`);
// } catch (err) {
// console.log(
// 'Error renaming Operational Panel, please make sure you have the correct permission.',
// 'Error renaming Observability Dashboard, please make sure you have the correct permission.',
// 'danger'
// );
// console.error(err.body.message);
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove the commented code.

Copy link
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

i still see some panels, checking if they should also be changed?

const message = 'Issue in saving metrics to panels';

console.log('Error updating panel', { err, panel });

setToast(`Error in adding ${newVisualizationTitle} visualization to the panel`, 'danger');

text: `Visualization '${saveTitle}' has been successfully saved to operation panels.`,

Peter Fitzgibbons and others added 4 commits April 18, 2023 11:17
Signed-off-by: Peter Fitzgibbons <[email protected]>
Panel View SavedObject
- Duplicate Action
- protect render from invalid record
- hide render while loading

Signed-off-by: Peter Fitzgibbons <[email protected]>
Co-authored-by: Peter Fitzgibbons <[email protected]>
@pjfitzgibbons pjfitzgibbons merged commit d05f136 into main Apr 18, 2023
pjfitzgibbons pushed a commit that referenced this pull request Apr 18, 2023
* Rename Panels => Observability Dashboard
---------

Signed-off-by: Peter Fitzgibbons <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Co-authored-by: Peter Fitzgibbons <[email protected]>
Co-authored-by: Joshua Li <[email protected]>
Co-authored-by: Shenoy Pratik <[email protected]>

(cherry picked from commit d05f136)
Signed-off-by: Peter Fitzgibbons <[email protected]>
joshuali925 added a commit to joshuali925/dashboards-observability that referenced this pull request Apr 18, 2023
* Rename Panels => Observability Dashboard
---------

Signed-off-by: Peter Fitzgibbons <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Co-authored-by: Peter Fitzgibbons <[email protected]>
Co-authored-by: Joshua Li <[email protected]>
Co-authored-by: Shenoy Pratik <[email protected]>
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.

3 participants