GithubHelp home page GithubHelp logo

populist-vote / platform Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 1.0 3.7 MB

Populist API

Home Page: https://api.populist.us

Shell 0.24% Rust 96.93% PLpgSQL 2.82% Procfile 0.01%
democracy government graphql legislation legislation-as-code politics rust voting

platform's People

Contributors

chgiersch avatar coloradocarlos avatar wileymc avatar zackrose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rustworks

platform's Issues

Add State field to Election table

So we can filter elections by state when browsing elections on My Ballot (should pull from the user's address)

be sure to update Web to accommodate

the General Election should be accessible across all states

Voting Guide races should be prioritized the same as My Ballot is

Right now on a user's voting guide, the races are not ordered in the same way that they are ordered on their My Ballot page e.g. in the following order: Governor, Lieutenant Governor, Secretary of State, Attorney General, Treasurer, State Auditor

Make it so that they are in the same order across the platform

Handle expired JWT on frontend

Right now, the api will throw CORS errors if the clients JWT has expired, rendering a blank screen for the user. We need to have the api simply delete the existing expired token so the user is prompted to login again.

Create `images` resolver on Politician

An images object with urls in various resolutions for the politician:

politicianBySlug(slug: "michael-bennet") {
  images {
     thumbnail160
     thumbnail400
     someOtherImageName640
  }
}

Right now there is only a thumbnail_image_url column on the politician table, so a migration will be needed, perhaps we make an assetUrls jsonb column to hold these urls?

Add delete cascade for user_profile

Right now, Postgres won't allow you to simply delete a user because of the fk constraint on the user_profile. Add a delete cascade to ensure that deleting a populist_user also deletes their user_profile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.