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

Context sensitive prediction #389

Merged
merged 1 commit into from
May 11, 2022
Merged

Context sensitive prediction #389

merged 1 commit into from
May 11, 2022

Conversation

synfinatic
Copy link
Owner

@synfinatic synfinatic commented May 10, 2022

This change now looks at all the flags on the command line and uses
previous flags to filter results for the current flag. We now
honor:

  • -S/--sso
  • -R/--role
  • -A/--account

Which impacts the --role, --account, --profile and --arn flags.

Refactor our code and move all predction code into internal/predictor

Fixes: #382

@synfinatic synfinatic force-pushed the predict-in-binary branch from 13ae09e to 0c1a6f4 Compare May 10, 2022 19:39
@codecov
Copy link

codecov bot commented May 10, 2022

Codecov Report

Merging #389 (6d213f6) into main (7f86c33) will increase coverage by 1.30%.
The diff coverage is 90.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
+ Coverage   76.09%   77.39%   +1.30%     
==========================================
  Files          18       21       +3     
  Lines        2288     2517     +229     
==========================================
+ Hits         1741     1948     +207     
- Misses        480      496      +16     
- Partials       67       73       +6     
Impacted Files Coverage Δ
internal/predictor/logger.go 50.00% <50.00%> (ø)
internal/predictor/predictor.go 82.30% <76.74%> (ø)
sso/roles.go 90.04% <93.85%> (+2.54%) ⬆️
internal/predictor/comp_vars.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f86c33...6d213f6. Read the comment docs.

@synfinatic synfinatic force-pushed the predict-in-binary branch 3 times, most recently from 33925aa to 61f5598 Compare May 10, 2022 23:32
This change now looks at all the flags on the command line and uses
previous flags to filter results for the current flag.  We now
honor:

 * -S/--sso
 * -R/--role
 * -A/--account

Which impacts the --role, --account, --profile and --arn flags.

Refactor our code and move all predction code into internal/predictor

Fixes: #382
@synfinatic synfinatic force-pushed the predict-in-binary branch from 61f5598 to 6d213f6 Compare May 10, 2022 23:53
@synfinatic synfinatic merged commit 08025db into main May 11, 2022
@synfinatic synfinatic deleted the predict-in-binary branch May 11, 2022 00:21
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.

Predictions don't honor -S or --sso flag
1 participant