Skip to content

Return falsy values from failed authentication, per Ninja expectations#1243

Closed
brianhelba wants to merge 2864 commits intomasterfrom
zip-auth
Closed

Return falsy values from failed authentication, per Ninja expectations#1243
brianhelba wants to merge 2864 commits intomasterfrom
zip-auth

Conversation

@brianhelba
Copy link
Copy Markdown
Member

No description provided.

danlamanna and others added 30 commits May 7, 2025 07:42
Properly format the count on the users page
Add ORM optimizations for bulk metadata application
…-created-m2m

Add through table for collection image relationships
Use a streaming response for zipstreamer metadata files
This also adds some sentry instrumentation to more accurately classify
time spent parsing.
Increase the size of the DSL parsing cache
Apply collection description styles to DOI pages
Stop recreating metadata files on blob deletion
Ensure that default attribution is only applied during publish
…ounts

Remove the lesion and patient counts from the DOI detail page
Allow specifying which DOIs to update on datacite
Move cohort publishing code to a publish service
This adds a PublishRequest model for tracking the accessions and
where/how they should be published. This makes it easier to separate the
publishing process into multiple steps: publish and optionally
unembargo. This will be necessary going forward as the unembargo process
is going to get more complicated with the introduction of sponsored
bucket storage and IPTC tagging.
danlamanna and others added 23 commits July 10, 2025 16:18
…tion

Use orjson for zip descriptor listing
Ensure cachalot entries expire immediately in development
…edia-url

Stop depending on the storage media url in test
This resolves a bunch of circular import issues, which required function-local
imports.
Apply changes from Resonant v0.33
Invert the `Collection`-`Doi` relationship and use `DoiFactory` directly in tests
@danlamanna
Copy link
Copy Markdown
Member

@brianhelba PTAL at the commit I put on. Ninja says it wants something that's convertible to boolean (https://django-ninja.dev/guides/authentication/#custom-function), not boolean. We depend on the token value in the view so this was failing tests.

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