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

🐛 application can only have one review #1693

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

djzager
Copy link
Member

@djzager djzager commented Feb 21, 2024

https://issues.redhat.com/browse/MTA-1888

It appears that an application can only have a single review. So this changes the Tab title from Reviews -> Review and drops the redundant header inside.

@djzager
Copy link
Member Author

djzager commented Feb 21, 2024

Screenshot 2024-02-21 at 14 18 44

@djzager djzager added the cherry-pick/release-0.3 This PR should be cherry-picked to release-0.3 branch. label Feb 21, 2024
@@ -425,7 +425,7 @@ export const ApplicationDetailDrawer: React.FC<
</Tab>
<Tab
eventKey={TabKey.Reviews}
title={<TabTitleText>{t("terms.reviews")}</TabTitleText>}
title={<TabTitleText>{t("terms.review")}</TabTitleText>}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be reviews.
An application can have more than one review inherited from multiple archetypes
app_review_mta-7 0 0-50

Copy link
Member Author

Choose a reason for hiding this comment

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

Then what exactly was meant by the comment:

Scott Dickerson please see attached app_review_mta-7.0.0-50.png, I think the best would be to title the tab in application side drawer "Review" as suggested in the bug summary.
Thanks

Based on this comment. The bug is fixed and should have been closed.

Copy link
Member Author

Choose a reason for hiding this comment

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

I keep reading and re-reading trying to understand what I'm missing. My apologies. These look like two comments in direct opposition to each other.

One says, I think the best would be to title the tab in the application side drawer "Review"... and the comment made on the line that changes it to "Review" is Should be **reviews**.

Copy link
Member

Choose a reason for hiding this comment

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

@JustinXHale

Question for you here:
When an application has a review at the app level, we only show the app review in the drawer as expected / discussed.
Screenshot 2024-02-21 at 3 39 32 PM

Then when we discard the review for the app, we show the inherited archetype reviews.

Screenshot 2024-02-21 at 3 39 39 PM Screenshot 2024-02-21 at 3 39 50 PM

Want to figure out a better way to represent this in the UI. Any ideas here? There is some desire to change the review tab to read reviews / review depending on which scenario we are in. Wondering your take on this. Thanks!

Copy link
Collaborator

@mguetta1 mguetta1 Feb 21, 2024

Choose a reason for hiding this comment

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

@djzager You are so right! I confused myself...
I forgot that I asked to change the tab title to "Review" and the initial purpose of the bug

In bottom line, application can have one or more reviews, so Review/Reviews are both acceptable as the tab title :)
The original bug was to make the term "Review" in both application and archetype drawer side, so LGTM

Sorry about that.

Copy link
Member

Choose a reason for hiding this comment

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

@ibolton336 I think Review or Reviews is appropriate. I learn more to 'Reviews' since applications and archetypes can have more than one review. But many applications might only have one 'Review' so review sits just fine as well, and if its more than one its no big deal.

If the majority are okay with 'Review', which that seems to be the case, I'm good with 'Review' as well.

Copy link
Member

Choose a reason for hiding this comment

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

👍 Thanks @JustinXHale

Copy link
Member

@ibolton336 ibolton336 left a comment

Choose a reason for hiding this comment

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

LGTM :)

@ibolton336 ibolton336 merged commit ce3cab5 into konveyor:main Feb 22, 2024
6 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 22, 2024
https://issues.redhat.com/browse/MTA-1888

It appears that an application can only have a single review. So this
changes the Tab title from `Reviews` -> `Review` and drops the redundant
header inside.

Signed-off-by: David Zager <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
ibolton336 added a commit that referenced this pull request Feb 22, 2024
https://issues.redhat.com/browse/MTA-1888

It appears that an application can only have a single review. So this
changes the Tab title from `Reviews` -> `Review` and drops the redundant
header inside.

Signed-off-by: David Zager <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>

Signed-off-by: David Zager <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
Co-authored-by: David Zager <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/release-0.3 This PR should be cherry-picked to release-0.3 branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants