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

hccdoc-2342 Neutral filenames, CUR>data export, and OCI link fix #1211

Merged

Conversation

neal-timpe
Copy link
Contributor

@neal-timpe neal-timpe commented May 10, 2024

Description

This fixes links and link text issues the integration wizard in three parts. First, in conjunction with hccdoc-2342, this changes the filenames in some cost management docs so that they don't have HCS in the URL and makes the links from the sources UI point to the correct locations.

For HCCDOC-2389, it changes CUR to data export to track with a change made in HCS.

And as part of HCSDOC-2363, it fixes a naked URL link to the docs and covers it with appropriate link text.


Screenshots

Oracle cloud

After:

It should say after In your Oracle Cloud account, create a VM and run a script the documentation: Replicating reports to a bucket


Checklist ☑️

  • PR only fixes one issue or story
  • Change reviewed for extraneous code
  • UI best practices adhered to
  • Commits squashed and meaningfully named
  • All PR checks pass locally (build, lint, test, E2E)

  • (Optional) QE: Needs QE attention (OUIA changed, perceived impact to tests, no test coverage)
  • (Optional) QE: Has been mentioned
  • (Optional) UX: Needs UX attention (end user UX modified, missing designs)
  • (Optional) UX: Has been mentioned

@app-sre-bot
Copy link

Can one of the admins verify this patch?

@lpichler lpichler requested a review from fhlavac May 13, 2024 05:48
@Hyperkid123 Hyperkid123 requested a review from a team May 13, 2024 08:37
Copy link
Contributor

@fhlavac fhlavac left a comment

Choose a reason for hiding this comment

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

Apart from the lint issues looks good. Also, the PR checklist should be filled in. Thank you 🙂

@neal-timpe neal-timpe force-pushed the update-cost-doc-links-hccdoc-2342 branch from 6806d3d to 7b3ce87 Compare May 14, 2024 14:09
@neal-timpe
Copy link
Contributor Author

@fhlavac I feel like the checklist is filled in, but I can't figure out why the linter threw an error on whitespace that I didn't change. It's my first PR for this project, so sorry about that.

Comment on lines 205 to 206
defaultMessage:
'In your Oracle Cloud account, create a VM and run a script similar to the one from this github repository:',
'In your Oracle Cloud account, create a VM and run a script provided in the documentation:',
Copy link
Contributor

Choose a reason for hiding this comment

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

here, the linter wants just put "defaultMessage" and the string on the same line

Comment on lines 126 to 128
screen.getByText(
'In your Oracle Cloud account, create a VM and run a script similar to the one from this github repository:',
'In your Oracle Cloud account, create a VM and run a script provided in the documentation',
),
Copy link
Contributor

@fhlavac fhlavac May 17, 2024

Choose a reason for hiding this comment

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

and the same here, just put it all on a single line

@fhlavac
Copy link
Contributor

fhlavac commented May 17, 2024

I cannot see any more issues, running the lint script with --fix option should help.
@neal-timpe have you encountered anything else? Thank you 🙂

Copy link
Contributor

Choose a reason for hiding this comment

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

Here, you are updating the test, but the code (in arn.js) still contains the old wording - that's why the tests are failing

screen.getByText(
'In your Oracle Cloud account, create a VM and run a script similar to the one from this github repository:',
),
screen.getByText('In your Oracle Cloud account, create a VM and run a script provided in the documentation'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
screen.getByText('In your Oracle Cloud account, create a VM and run a script provided in the documentation'),
screen.getByText('In your Oracle Cloud account, create a VM and run a script provided in the documentation:'),

screen.getByText(
'In your Oracle Cloud account, create a VM and run a script similar to the one from this github repository:',
),
screen.getByText('In your Oracle Cloud account, create a VM and run a script provided in the documentation'),
).toBeInTheDocument();
expect(
screen.getByText(
Copy link
Contributor

Choose a reason for hiding this comment

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

this assertion probably needs updating to Replicating reports to a bucket

@codecov-commenter
Copy link

codecov-commenter commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.75%. Comparing base (51e2ae0) to head (f212167).

Current head f212167 differs from pull request most recent head 4c7077e

Please upload reports for the commit 4c7077e to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1211   +/-   ##
=======================================
  Coverage   97.75%   97.75%           
=======================================
  Files         184      184           
  Lines        3702     3702           
  Branches     1053     1053           
=======================================
  Hits         3619     3619           
  Misses         77       77           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@neal-timpe
Copy link
Contributor Author

Thanks! @fhlavac My local linter was coming up with some other nonsense that I couldn't figure out and I didn't want to keep committing, but it looks like it came out okay with your help! :)

@neal-timpe neal-timpe force-pushed the update-cost-doc-links-hccdoc-2342 branch from 88a25cc to 4c7077e Compare May 20, 2024 20:46
@fhlavac fhlavac merged commit 3420dff into RedHatInsights:master May 21, 2024
2 checks passed
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.

None yet

4 participants