Updates the TeamProjectHeader to query for the current valid team projects and then validate the user's current stored team project. If the stored team project is not valid, the stored value is removed and they are redirected to the analysis app to select a new team project.
This can be tested locally by setting an invalid project name in the browser console:
localStorage.setItem('teamProject', '/bad_name');
and then reloading the page when on the OHDSI, GWAS or Results app.
Storybooks and unit tests are update accordingly.
New Features
Implements redirect functionality for users with expired team project names stored locally
Jira Ticket: VADC-780
Updates the TeamProjectHeader to query for the current valid team projects and then validate the user's current stored team project. If the stored team project is not valid, the stored value is removed and they are redirected to the analysis app to select a new team project.
This can be tested locally by setting an invalid project name in the browser console:
localStorage.setItem('teamProject', '/bad_name');
and then reloading the page when on the OHDSI, GWAS or Results app.Storybooks and unit tests are update accordingly.
New Features