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

ProjectData returned from WS GET /api/projects/{PROJECT_ID} gives timeout and deadline in units of seconds, but project creation with WS PUT /api/projects/{PROJECT_ID} expects these fields in days #20

Open
dotsdl opened this issue Nov 26, 2024 · 1 comment

Comments

@dotsdl
Copy link
Member

dotsdl commented Nov 26, 2024

Our model for ProjectData has timeout and deadline in units of days, and this is consistent with the documented model the WS API provides: https://docs.foldingathome.org/ws/api.html#projectdata

This appears to apply as you'd expect when performing a PUT to the WS at /api/projects/{PROJECT_ID} to create a new PROJECT by providing a ProjectData object, but performing a GET to the WS at the same API point will give back a ProjectData that has these fields in seconds instead.

@dotsdl
Copy link
Member Author

dotsdl commented Nov 26, 2024

@jcoffland is this mismatch something you're aware of in the work server API code?

dotsdl added a commit that referenced this issue Nov 26, 2024
…s of days

See issue #20 for why this is currently a bit complicated, however.
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

No branches or pull requests

1 participant