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

Fix Space variable when updatedAt is missing #2050

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Feb 27, 2024

In moon-landing (private repo), the updatedAt field is optional for Space variables. Never noticed before but it brakes the date parsing in that case. This PR fixes this by making the field optional in Python as well.

Encountered this bug while investigating an issue on https://huggingface.co/spaces/Wauplin/gradio-space-ci

@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

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.64%. Comparing base (e3c0c73) to head (2e4d796).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2050      +/-   ##
==========================================
+ Coverage   80.60%   80.64%   +0.03%     
==========================================
  Files          71       71              
  Lines        8518     8519       +1     
==========================================
+ Hits         6866     6870       +4     
+ Misses       1652     1649       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Wauplin Wauplin merged commit c32602a into main Feb 27, 2024
14 checks passed
@Wauplin Wauplin deleted the handle-space-var-missing-update-at branch February 27, 2024 14:11
Wauplin added a commit that referenced this pull request Feb 27, 2024
* Fix Space variable when updatedAt is missing

* var
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.

None yet

2 participants