Skip to content

feat(session): remove region cache on logout#1217

Merged
EtienneM merged 1 commit into
masterfrom
fix/1057/remove-region-cache-on-logout
May 13, 2026
Merged

feat(session): remove region cache on logout#1217
EtienneM merged 1 commit into
masterfrom
fix/1057/remove-region-cache-on-logout

Conversation

@SCedricThomas
Copy link
Copy Markdown
Contributor

@SCedricThomas SCedricThomas commented Apr 17, 2026

How I tested the fix:

  1. scalingo login --password-only using an account with no access to osc-secnum-fr1
  2. bscalingo logout with the CLI version from this branch
  3. bscalingo login using an account with access to osc-secnum-fr1
  4. bscalingo --app my-test-app --region osc-secnum-fr1 timeline

At this point, the latest release is impacted by a bug which displays:

 !     An error occurred:                                                                                                                                                                                                                                     
       invalid region osc-secnum-fr1                                                                                                                                                                                                                          

With the version from this branch, it works with no problem.

fix #1057

  • Add a changelog entry in the section "To Be Released" of CHANGELOG.md

@SCedricThomas SCedricThomas self-assigned this Apr 17, 2026
@SCedricThomas SCedricThomas force-pushed the fix/1057/remove-region-cache-on-logout branch from 3079c59 to ef9a118 Compare April 17, 2026 08:08
@EtienneM EtienneM force-pushed the fix/1057/remove-region-cache-on-logout branch from bad8868 to 41d5469 Compare May 6, 2026 15:56
@EtienneM EtienneM self-assigned this May 6, 2026
@EtienneM EtienneM force-pushed the fix/1057/remove-region-cache-on-logout branch 2 times, most recently from dce8998 to 2c63119 Compare May 6, 2026 16:02
@EtienneM EtienneM marked this pull request as ready for review May 11, 2026 14:38
@EtienneM EtienneM requested review from a team, EtienneM and matthieu526-scalingo and removed request for a team and EtienneM May 11, 2026 14:38
Comment thread session/destroy.go
err = config.DeleteRegionsCache(ctx, config.C)
if err != nil {
return errors.Wrap(ctx, err, "remove local regions cache")
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mega-nitpick: missing break line before the return.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I love this kind of nitpicks 😄

@EtienneM EtienneM force-pushed the fix/1057/remove-region-cache-on-logout branch from 2c63119 to 2908779 Compare May 13, 2026 09:18
@EtienneM EtienneM enabled auto-merge May 13, 2026 09:18
@EtienneM EtienneM merged commit 7f11612 into master May 13, 2026
7 checks passed
@EtienneM EtienneM deleted the fix/1057/remove-region-cache-on-logout branch May 13, 2026 09:20
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.

Regions cache may not be filled with all regions

3 participants