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

Twfy votes connections #1854

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

Twfy votes connections #1854

wants to merge 4 commits into from

Conversation

ajparsons
Copy link
Contributor

This is a basic PR to connect to the new votes site rather than the prototype one.

Two changes:

  • Some adjustments to fields in the output of the new data.
  • After divisions are exported, it sends a message to the votes site to import the past days data.

This needs the config updated to the new votes site, the updater will say something but not fail if the refresh token isn't present.

@ajparsons ajparsons requested a review from dracos February 14, 2025 13:53
@ajparsons ajparsons requested a review from struan February 24, 2025 10:32
Copy link
Member

@struan struan left a comment

Choose a reason for hiding this comment

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

Looks good. Feel free to ignore my tiny niggles :)

I've added an extra commit just because I noticed the issue while testing this and figured I might as well fix it.

@ajparsons ajparsons force-pushed the twfy-votes-connections branch from 55a258a to b6475c6 Compare February 26, 2025 15:42
@ajparsons
Copy link
Contributor Author

Those are in! Will work out a good timeline to merge because this will now add the new votes content.

ajparsons and others added 4 commits March 10, 2025 11:51
Slightly different key names, and some differences in how agreements are stored.
- Signal sent after divisons are exported to import them to other site.
I don't think this should ever happen as why would you have a link to
this page if they had no votes on a policy, but if that does happen then
you get an error as the various has_strong/weak flags are defined inside
the if and so not available when you get to the checks further down the
page and trigger an error.
@ajparsons ajparsons force-pushed the twfy-votes-connections branch from b6475c6 to 986d00c Compare March 10, 2025 11:52
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.

2 participants