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

Remove providers; use selected employer #9

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

allthesignals
Copy link
Contributor

  • Removes the providers resource
  • Queries for real employer records
  • Uses the selected employer in the Link flow
  • Passes the received account id to the next step

@@ -63,6 +66,13 @@ def fetch_and_store_argyle_token
parsed['user_token']
end

def fetch_employers
res = Net::HTTP.get(URI.parse(ITEMS_ENDPOINT), {"Authorization" => "Basic #{ENV['ARGYLE_API_TOKEN']}"})
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we will want to use .get_response for real things just so we have better ability to handle errors. But no sense in fixing it here if all that error handling will happen in the Argyle service that George is working on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeahhh I don't love it. If you don't feel strongly about it I'll go ahead and merge. Let's see what the service class does.

@allthesignals allthesignals merged commit 2866701 into main Apr 30, 2024
6 checks passed
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