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

Pro dashboard shows duplicates #13995

Open
cpaelzer opened this issue Jun 26, 2024 · 4 comments
Open

Pro dashboard shows duplicates #13995

cpaelzer opened this issue Jun 26, 2024 · 4 comments

Comments

@cpaelzer
Copy link

cpaelzer commented Jun 26, 2024

Summary

When looking at the pro dashboard I see a contract listed twice.

Steps to reproduce the behavior

  1. Go to https://ubuntu.com/pro/dashboard
  2. Log on with an account that can see our teams contracts (I'm logged in with the email I have in the directory)
  3. See on the left panel listing the contracts. We have a bunch of team use contracts and tokens here for testing
  4. See that the contract "server-team-ua-client-ci-uaa" is listed twice (I checked it also is the same token, so it really is a duplicate, not just the same name by accident)

Expected behavior

Every contract to show up exactly once

BTW I also consider it a bug that my personal free account is not shown at all here and only in SF, but that is a different topic. Yet maybe that is part of the riddle why we see a duplicate - hence I mention it.

Screenshot

Ubuntu-Pro-dashboard-duplicate

Browser/device details

  • Device: Lenovo Thinkpad T580
  • OS: Ubuntu 24.04 Noble
  • Browser Chrome
  • Version 126.0.6478.114 (Official Build) (64-bit)
@orndorffgrant
Copy link

I see the same duplicate from my account.

@mtruj013
Copy link
Contributor

@cpaelzer @orndorffgrant thanks for reporting!

@minkyngkm @abhigyanghosh30 could you take a look please?

@abhigyanghosh30
Copy link
Contributor

@minkyngkm seems to be an error in the frontend for not showing the free subscription. Also the duplicated listing is a problem from build_user_subscriptions function

@alnvdl-work
Copy link
Collaborator

alnvdl-work commented Jul 8, 2024

I don't think there is a bug here. There is a fundamental difference between the Pro backend representation of contracts and the representation in the Pro dashboard. Due to UX decisions made in the past, the Pro dashboard shows each contract item, instead of grouping them by contract (or "Pro token").

The reason @cpaelzer is seeing two entries for server-team-ua-client-ci-uaa is because there are indeed two contract items in that contract; there should be only one, but since the creation process of these special entitlements is manual, someone likely made a mistake when creating or updating it. This is completely harmless though.

As for why the free token is not displayed, that's a separate issue; IIRC, our internal UX teams are discussing a better solution to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants