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

schedule/feeds: make json feed schema compatible #1612

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Kunsi
Copy link

@Kunsi Kunsi commented May 24, 2024

No description provided.

@Kunsi Kunsi force-pushed the kunsi-schedule-json-schema-compatible branch from aef04d9 to d94e2f3 Compare May 24, 2024 10:47
@Kunsi Kunsi force-pushed the kunsi-schedule-json-schema-compatible branch from d94e2f3 to d70ab38 Compare May 24, 2024 10:51
@Kunsi Kunsi marked this pull request as ready for review May 24, 2024 11:03
@@ -46,12 +49,146 @@ def schedule_json(year):
return Response(json.dumps(schedule), mimetype="application/json")


@schedule.route("/schedule/schedule-<int:year>.json") # TODO validate url with upstream
Copy link
Author

Choose a reason for hiding this comment

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

Maybe we can just use /schedule/<int:year>.json and merge this pull request after this years EMF?

also add request argument to show the old-style json schedule
abort(404)

schedule = [_convert_time_to_str(p) for p in _get_scheduled_proposals(request.args)]
if request.args.get('format') == 'array':
Copy link
Author

Choose a reason for hiding this comment

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

Also feels wrong to do it like this. I don't know. Feedback please! (I'm happy to expose the schema-compatible json on another endpoint, i just have no clue what would be a good name)

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

1 participant