-
Notifications
You must be signed in to change notification settings - Fork 667
Bug 2006060: Redirect to object dashboard for MCG only #10362
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
Bug 2006060: Redirect to object dashboard for MCG only #10362
Conversation
|
@SanjalKatiyar: This pull request references Bugzilla bug 2006060, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (musoni@redhat.com), skipping review request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@SanjalKatiyar: This pull request references Bugzilla bug 2006060, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (musoni@redhat.com), skipping review request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
|
@SanjalKatiyar: This pull request references Bugzilla bug 2006060, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (musoni@redhat.com), skipping review request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When creating mcg standalone, add these flags.
| @@ -173,6 +173,7 @@ export const detectComponents: FeatureDetector = async (dispatch) => { | |||
| const noobaaSystems = await k8sList(NooBaaSystemModel, { ns: CEPH_STORAGE_NAMESPACE }); | |||
| if (noobaaSystems?.length > 0) { | |||
| dispatch(setFlag(MCG_FLAG, true)); | |||
| if (!cephFound) dispatch(setFlag(CEPH_FLAG, false)); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This flag should also be dispatched when clicking creation of a mcg standalone storage system/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be set as false here only (for mcg standalone or any other deployment), as soon as noobaaSystem is found and no cephSystem is found. Is there some condition or some place missing where it will not be set ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added it in footer file, let me know if I should remove it from here or not ?
7811dbc to
46d60cc
Compare
46d60cc to
ee0e9f1
Compare
| @@ -29,7 +29,8 @@ const ODFSystemDashboard: React.FC<ODFSystemDashboardPageProps> = ({ | |||
| const isObjectServiceAvailable = useFlag(MCG_FLAG); | |||
| const isCephAvailable = useFlag(CEPH_FLAG); | |||
| const { systemName } = rest.match.params; | |||
| const dashboardTab = isCephAvailable === false && isObjectServiceAvailable ? OBJECT : BLOCK_FILE; | |||
| const dashboardTab = | |||
| !!isCephAvailable === false && isObjectServiceAvailable ? OBJECT : BLOCK_FILE; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the fix your BZ would be suffice by this ?
undefined is a falsy value.
| !!isCephAvailable === false && isObjectServiceAvailable ? OBJECT : BLOCK_FILE; | |
| !isCephAvailable && isObjectServiceAvailable ? OBJECT : BLOCK_FILE; |
ee0e9f1 to
0597cfd
Compare
97c5703 to
ef9afe7
Compare
|
@SanjalKatiyar: An error was encountered querying GitHub for users with public email (musoni@redhat.com) for bug 2006060 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details. Full error message.
non-200 OK status code: 403 Forbidden body: "{\n \"documentation_url\": \"https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits\",\n \"message\": \"You have exceeded a secondary rate limit. Please wait a few minutes before you try again.\"\n}\n"
Please contact an administrator to resolve this issue, then request a bug refresh with DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afreen23, SanjalKatiyar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@SanjalKatiyar: All pull requests linked via external trackers have merged: Bugzilla bug 2006060 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This PR incorporates a correction to #10117 which got missed when patch #10117 was sent.
Correction: For MCG only system, CEPH_FLAG was getting set as
undefinedinstead offalse.