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

NIFI-13632: Updating content access. #9221

Merged
merged 10 commits into from
Sep 6, 2024
Merged

Conversation

mcgilman
Copy link
Contributor

  • Removing existing content viewer application.
  • Introduced new front end based content viewer applicaiton.
  • Introduced new bundled content viewers for hex and images.
  • Deleted previous image content viewer.
  • Migrated existing standard content viewer (which handles json, xml, yaml, csv, and text) to utilize new content access interface.
  • Moved standard content viewer into its own NAR.
  • Moved and renamed custom ui utils and content viewer utils into nifi-common.
  • Added mime type to FlowFileSummary response payload to help drive the initially opened content viewer.

@mcgilman mcgilman added the new ui Pull requests for work relating to the new user interface being developed. label Aug 29, 2024
@rfellows
Copy link
Contributor

Reviewing from a front-end perspective...

@exceptionfactory
Copy link
Contributor

Thanks for the substantial work @mcgilman! I will review the server-side implementation soon.

I did notice a build failure related to a missing reference in nifi-code-coverage, so that should be removed for successful CI builds.

Copy link
Contributor

@rfellows rfellows left a comment

Choose a reason for hiding this comment

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

This is really good work, @mcgilman. I did leave some comments inline. Feel free to reach out if you want to discuss them further.

Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

This looks solid from a server implementation perspective, just noted two questions regarding the Spring Boot version and the configuration file.

@joewitt
Copy link
Contributor

joewitt commented Sep 2, 2024

Testing this out a bit. Making great progress.

I tried a scenario with GenerateFlowFile to a python script. The python script writes out flowfile content that is just "1.25.0". The flowfile has only filename, path, and uuid attributes set. I then route to updateAttribute that is stopped. I then list queue and view content for one of these. It shows up by default in a hex editor. That looks good. Then when I select view-text it shows a blank/white screen. If I go back to hex editor it looks good. Then back to text and it looks good.

So something funky there but perhaps related to flowfiles with minimal attributes.

Also notable in that same panel if I click around to csv it will sometimes give the white screen and sometimes render.

- Removing existing content viewer application.
- Introduced new front end based content viewer applicaiton.
- Introduced new bundled content viewers for hex and images.
- Deleted previous image content viewer.
- Migrated existing standard content viewer (which handles json, xml, yaml, csv, and text) to utilize new content access interface.
- Moved standard content viewer into its own NAR.
- Moved and renamed custom ui utils and content viewer utils into nifi-common.
- Added mime type to FlowFileSummary response payload to help drive the initially opened content viewer.
@joewitt
Copy link
Contributor

joewitt commented Sep 3, 2024

additional testing after a hard refresh the white screen i described still happens but it is very rare. in a local docker deployment it seems a bit easier to reproduce. in local mode without docker it is very hard to reproduce. it happened once in maybe 50 attempts.

So in short - i dont think it is worth bothering with at this point. might be a local issue/hard refresh certainly seems to have made the issue less likely.

thanks

- Rendering mime type in the content viewer.
- Preventing additions to the browser history as the user changes how the content is viewed.
- Appending forward slash to content viewer UIs to prevent unnecessary redirect.
- Removing Standard Content Viewer title based on review feedback.
- Fixing double scroll bar in the Standard Content Viewer on small browser heights.
- Removed unnecessary application.yml.
- Bumping spring boot version.
Copy link
Contributor

@rfellows rfellows left a comment

Choose a reason for hiding this comment

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

This is looking great from a UI-perspective. Thanks for the hard work @mcgilman.

Copy link
Contributor

@scottyaslan scottyaslan left a comment

Choose a reason for hiding this comment

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

The latest changes work well. Thanks @mcgilman!

Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks again for the work on this @mcgilman, looks good!

@rfellows rfellows merged commit 39ab312 into apache:main Sep 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new ui Pull requests for work relating to the new user interface being developed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants