Migrate commands #164

Open
opened 2026-10-07 11:59:20 +00:00 by aniram · 0 comments
Owner

Port the logic from the old branches one group at a time, keeping behavior identical:

  • Reference data: tables, legislatures, deputies, leg-lawmaker-code-members
  • Projects and amendments: history, history-changed, amendments, amendment-members
  • Polls and expenses: polls, poll-objects, poll-projects, poll-votes, session, quota-expense-types, quota-expenses

Notes for the port:

The amendments command runs AmendmentsIfChanged("amendments.zip") and then AmendmentDeputies(). Split it.
The year default (syncer.CurrentYear) and leg default (syncer.CurrentLegislature) should become the flag defaults instead of the if flag != 0 pattern.
session builds its path as filepath.Join(appRoot, "archives", filename). Keep that, but make --filename required and fail with a usage error if it's empty.

Port the logic from the old branches one group at a time, keeping behavior identical: - [x] Reference data: tables, legislatures, deputies, leg-lawmaker-code-members - [x] Projects and amendments: history, history-changed, amendments, amendment-members - [x] Polls and expenses: polls, poll-objects, poll-projects, poll-votes, session, quota-expense-types, quota-expenses Notes for the port: The amendments command runs AmendmentsIfChanged("amendments.zip") and then AmendmentDeputies(). Split it. The year default (syncer.CurrentYear) and leg default (syncer.CurrentLegislature) should become the flag defaults instead of the if flag != 0 pattern. `session` builds its path as filepath.Join(appRoot, "archives", filename). Keep that, but make --filename required and fail with a usage error if it's empty.
aniram added this to the 2027.1 milestone 2026-10-07 11:59:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
overdrives/chambersbr#164
No description provided.