Skip to content

Directory Management API tweak + test#115

Merged
pgulley merged 4 commits intomainfrom
feature-tweak-directory-management
Apr 17, 2026
Merged

Directory Management API tweak + test#115
pgulley merged 4 commits intomainfrom
feature-tweak-directory-management

Conversation

@pgulley
Copy link
Copy Markdown
Member

@pgulley pgulley commented Apr 14, 2026

Just building on Phil's work- a small patch so that source_collection_delete is happy and a test suit.

Copy link
Copy Markdown
Contributor

@philbudne philbudne 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. A small operational question (for the web-search clone-db.sh script) on whether we should disable most users in staging?

from mediacloud.mgmt import DirectoryManagementApi

# Directory management integration checks against Tarbell staging (see mediacloud.org deployment).
MCWEB_STAGING_API_BASE = "https://mcweb-staging.tarbell.mediacloud.org/api/"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seeing the URL in black and white (or black on green) makes me wonder, should we disable/delete non-staff users when copying mcweb-db for staging???!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah yes, that's a good idea. Except for that I think we probably want at least one non-staff user to test against in staging, like to validate that 403s/401s get thrown as intended for gated features.

@pgulley pgulley merged commit b3dc074 into main Apr 17, 2026
2 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