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

Update how file's security metadata is retrieved following changes in the API response #2621

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

hanouticelina
Copy link
Contributor

@hanouticelina hanouticelina commented Oct 21, 2024

Following the deployment of huggingface-internal/moon-landing/pull/11077, from now on, the API response of /{repo_type}s/{repo_id}/tree/{revision}/{path_in_repo} returns the security scan metadata of a file in the field securityFileStatus instead of security. This PR reflects these changes and should fix the failing tests.

@hanouticelina hanouticelina requested a review from Wauplin October 21, 2024 13:07
@hanouticelina hanouticelina changed the title Change security key name and BlobSecurityInfo object Update how file's security metadata is retrieved following changes in the API response Oct 21, 2024
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks for adapting this @hanouticelina!
Looks good and should be backward and future-compatible 🤞

cc @coyotte508 @krampstudio for viz'

@hanouticelina hanouticelina merged commit ab0b386 into main Oct 22, 2024
18 checks passed
@hanouticelina hanouticelina deleted the change-security-key-name branch October 22, 2024 14:26
hanouticelina added a commit that referenced this pull request Oct 28, 2024
… the API response (#2621)

* Update security key name and BlobSecurityInfo object

* typos

* small typo

* add comment

* fix typo again
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.

3 participants