Skip to content

NIFI-14365 Filter collaboration by actual json value in GetBoxFileCollaborators#9801

Closed
awelless wants to merge 1 commit intoapache:mainfrom
awelless:NIFI-14365_Better_filter_in_GetBoxFileCollaborators
Closed

NIFI-14365 Filter collaboration by actual json value in GetBoxFileCollaborators#9801
awelless wants to merge 1 commit intoapache:mainfrom
awelless:NIFI-14365_Better_filter_in_GetBoxFileCollaborators

Conversation

@awelless
Copy link
Copy Markdown
Contributor

@awelless awelless commented Mar 13, 2025

Summary

NIFI-14365

Instead of lower case enum names, the processor should filter collaborations by their json values.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 21

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

flowFilesFirst.assertAttributeEquals("box.collaborations.accepted.viewer.users.ids", TEST_USER_ID_3);
flowFilesFirst.assertAttributeEquals("box.collaborations.accepted.viewer.users.logins", TEST_USER_EMAIL_3);
flowFilesFirst.assertAttributeEquals("box.collaborations.accepted.viewer uploader.groups.ids", TEST_GROUP_ID_1);
flowFilesFirst.assertAttributeEquals("box.collaborations.accepted.viewer uploader.groups.emails", TEST_GROUP_EMAIL_1);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I reckon that attribute names should be consistent with Box roles. Even when they contain hyphens or spaces.

@awelless awelless force-pushed the NIFI-14365_Better_filter_in_GetBoxFileCollaborators branch from f6b9a83 to 36c335f Compare March 13, 2025 12:30
@awelless awelless changed the title NIFI-14365 Filter collaboration by actual json value in GetBoxFileCol… NIFI-14365 Filter collaboration by actual json value in GetBoxFileCollaborators Mar 13, 2025
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.

2 participants