You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if you change the "Organization ICAO" in the settings page, this does not update any existing users friendly_ids. This causes URLs to be inconsistant.
Reproduce:
rails db:reset db:seed skyos:install
Fill in default user
Change the Organizational ICAO from "ORG" to "ABC"
Logbook URL will show for PID 100 "ORG100" while profile data shows "ABC100"
Screenshot:
The text was updated successfully, but these errors were encountered:
Currently the only mechanism to get the Pilot ID to regenerate the slug would be to go into user management and save each user again (even with no changes).
A hook when changing the organization ICAO will need to be written to trigger slug regeneration on each user.
This would likely need to be done in the Setting model of which functionality is provided by rails-settings-cached. Further investigation is needed to know whether all standard callbacks and change detection is available here.
Currently, if you change the "Organization ICAO" in the settings page, this does not update any existing users friendly_ids. This causes URLs to be inconsistant.
Reproduce:
rails db:reset db:seed skyos:install
Screenshot:
The text was updated successfully, but these errors were encountered: