| Summary: | Getting Next sync time for a repo from the API is not clear | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | James Slagle <jslagle> |
| Component: | user-experience | Assignee: | James Slagle <jslagle> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.0.0 | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Target Release: | Sprint 30 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:14:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
James Slagle
2011-11-02 14:36:42 UTC
I added a next_sync_time field to the following 2 API's: /repositories/<repoid>/schedules/sync/ /repositories/<repoid>/statuses/sync/ Figured it made sense in both those contexts. If a repository has no schedule, the field is null. commit: 02b576031b3f498f2300d21b06fc290437094d31 build: 0.256 [root@preethi ~]# rpm -q pulp pulp-0.0.256-1.fc15.noarch [root@preethi ~]# curl -k -u admin:admin -X GET https://localhost/pulpsitories/f15/schedules/sync/ {"schedule": "2012-01-07T14:00:00-05:00/PT5M", "id": "f15", "href": "/pulp/api/repositories/f15/", "next_sync_time": "2012-01-07T19:00:00Z", "type": "sync", "options": {"skip": {}}}[root@preethi ~]# [root@preethi ~]# curl -k -u admin:admin -X GET https://localhost/pulp/api/repositories/f15/statuses/sync/ {"exception": null, "traceback": null, "state": "waiting", "next_sync_time": "2012-01-07T19:00:00Z", "progress": null, "repoid": "f15"}[root@preethi ~]# Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |