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

Tidy up of the Search App #426

Merged
merged 5 commits into from
Jun 16, 2024
Merged

Tidy up of the Search App #426

merged 5 commits into from
Jun 16, 2024

Conversation

mike-ivs
Copy link
Member

@mike-ivs mike-ivs commented Mar 4, 2024

This PR improves both the readability and flow of the Search App, specifically the document.py and api.py files

@ChrisKSeal ChrisKSeal self-requested a review June 16, 2024 22:21
Copy link

@ChrisKSeal ChrisKSeal left a comment

Choose a reason for hiding this comment

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

Looks good to merge

if acl["token__id"] is not None:
# token access shouldn't be added to search
# unless search is given a way of checking token expiry
continue

Choose a reason for hiding this comment

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

Should this return None or something empty at this point? If I follow the code correctly this will return an acl dictionary without a pluginId or entityId, but will pick up the canDownload/canSensitive.

Choose a reason for hiding this comment

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

Nvm - just realised my noob error 😁

@mike-ivs mike-ivs merged commit c99e059 into main Jun 16, 2024
8 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.

2 participants