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

[ACS-8644] Fixed issue where download button and comments section was missing on manage versions dialog #10119

Merged

Conversation

swapnil-verma-gl
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)
Download button and comments section from manage versions dialog was missing

What is the new behaviour?
Download button and comments section from manage versions dialog are now shown

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:
https://hyland.atlassian.net/browse/ACS-8644
Root cause analysis - comment

Copy link

@nikita-web-ua
Copy link
Contributor

Did you test with ACA? Not working for me 🤔
Screenshot 2024-08-23 at 09 50 21

@swapnil-verma-gl
Copy link
Contributor Author

swapnil-verma-gl commented Aug 23, 2024

Did you test with ACA? Not working for me 🤔 Screenshot 2024-08-23 at 09 50 21

Yes, its working fine for me. Did you make sure to run local aca with adf configuration?
image

Copy link
Contributor

@nikita-web-ua nikita-web-ua left a comment

Choose a reason for hiding this comment

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

works as expected, I was on a wrong branch 🙂

const { file, node, showVersionsOnly, showComments, allowDownload } = data;
const { file, node, showVersionsOnly } = data;
const allowDownload = data.allowDownload ?? true;
const showComments = data.showComments ?? true;
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add tests here for these or it's not necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These flags are passed as data to the NewVersionUploaderDialog component, and then eventually to the VersionList component as input property. The tests for showing and hiding download button and comments section, based on the data present in that component, are already present under the unit tests for that component (here and here). So I don't think its required here anymore

@DenysVuika DenysVuika merged commit 4a18be0 into develop Aug 26, 2024
35 checks passed
@DenysVuika DenysVuika deleted the dev-acs-8644-manage-versions-missing-download-comments branch August 26, 2024 17:05
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.

4 participants