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

Fix releases not reloading when selecting namespaces #2515

Merged
merged 5 commits into from
Apr 15, 2021
Merged

Conversation

Nokel81
Copy link
Collaborator

@Nokel81 Nokel81 commented Apr 12, 2021

Signed-off-by: Sebastian Maltonsebastian@malton.name

fixes #2239

As for UI changes, the Header of ItemListLayout is not always displayed even while loading. Only the rows of data are conditionally rendered (with a spinner other wise).

- Also changed the tables to show the header even while loading

- Fixed small grammer mistake on 0 items (instead of 0 item)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 added bug Something isn't working area/ui labels Apr 12, 2021
@Nokel81 Nokel81 added this to the 4.2.2 milestone Apr 12, 2021
@Nokel81 Nokel81 self-assigned this Apr 12, 2021
@Nokel81 Nokel81 linked an issue Apr 12, 2021 that may be closed by this pull request
@Nokel81 Nokel81 added merge/master This PR will need to be merged to master after merged to target. Using cherry-pick. blocker labels Apr 14, 2021
@Nokel81 Nokel81 requested review from a team, aleksfront and jim-docker and removed request for a team April 14, 2021 12:47
Signed-off-by: Sebastian Malton <sebastian@malton.name>
@jim-docker
Copy link
Contributor

If I don't have access to secrets, Lens correctly reports that it can't list secrets, but the spinner spins forever instead of saying "item list is empty".

Screen Shot 2021-04-14 at 12 43 17 PM

@Nokel81
Copy link
Collaborator Author

Nokel81 commented Apr 14, 2021

@jim-docker So you think it would be better to say "0 items in list"? How about, "failed to list items"?

@jim-docker
Copy link
Contributor

@jim-docker So you think it would be better to say "0 items in list"? How about, "failed to list items"?

I think most important is that the spinner goes away. "item list is empty" is what is shown when there really are no items. But "failed to list items" would be more precise. Theoretically someone could have RBAC configured so that the user can see some secrets but not all? The releases list might be partial as a result? We could say "failed to list some items"?

@Nokel81
Copy link
Collaborator Author

Nokel81 commented Apr 14, 2021

@jim-docker I think you can restrict listing of secrets by namespace. So I think your alternative option is best.

Signed-off-by: Sebastian Malton <sebastian@malton.name>
Copy link
Contributor

@aleksfront aleksfront left a comment

Choose a reason for hiding this comment

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

Minor thing but noticed title blinking in releases page:
items blinking

src/renderer/components/+apps-releases/release.store.ts Outdated Show resolved Hide resolved
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 merged commit 10bcae2 into release/v4.2 Apr 15, 2021
@Nokel81 Nokel81 deleted the issue-2239 branch April 15, 2021 14:55
@Nokel81 Nokel81 mentioned this pull request Apr 15, 2021
@Nokel81 Nokel81 removed the merge/master This PR will need to be merged to master after merged to target. Using cherry-pick. label Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui blocker bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression 4.0.8 -> 4.1.3 Cannot list helm releases on OpenShift 3.11
3 participants