Skip to content

fix: dedupe /gtfs_agencies/list and require date_from - #58

Draft
arielvino wants to merge 1 commit into
hasadna:mainfrom
arielvino:fix/gtfs-agencies-merge
Draft

fix: dedupe /gtfs_agencies/list and require date_from#58
arielvino wants to merge 1 commit into
hasadna:mainfrom
arielvino:fix/gtfs-agencies-merge

Conversation

@arielvino

Copy link
Copy Markdown
Contributor

Description

  • Made date_from required.
  • Default date_to to date_from if not present.
  • Merge (deduplicate) the list for the selected date range (an operator appears only once in the result - if it is present in at least one day in the range).
  • If merge=false supplied explicitly - the result is not duplicated.

Why?

The frontend usually need the agency list to populate the operator dropdown.
It only needs the operators that active in a specific date, or in a date range if it displays a week-aggregation for example.

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.

1 participant