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

Make application front end components and file names year-agnostic #31044

Merged
merged 8 commits into from Oct 7, 2019

Conversation

clareconstantine
Copy link

@clareconstantine clareconstantine commented Oct 1, 2019

Description

We only ever have one live version of the teacher app, principal approval, and facilitator app. Having the year in the file and component names creates more work for us every year to rename all of these.

Jira task

@clareconstantine clareconstantine changed the base branch from staging to principal-approval-2021 October 1, 2019 17:54
hasIncompleteApplication={
!!sessionStorage['Teacher2021Application']
}
hasIncompleteApplication={!!sessionStorage['TeacherApplication']}
Copy link
Member

Choose a reason for hiding this comment

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

Is there any chance of an earlier year's application being loaded at this point?

Copy link
Author

Choose a reason for hiding this comment

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

ooh, I guess that could be an issue in future years if they had a partial application in session storage, but this year it wouldn't be an issue since the session storage key name hasn't been used for this before. Also, I think it's unlikely that a user would have a session open a year later with an in-progess application from a previous year - this gets reset if they close the session, right?

Copy link
Author

Choose a reason for hiding this comment

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

but we could keep this part year-specific if that feels safer

Copy link
Member

Choose a reason for hiding this comment

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

I think the session storage is very short-lived, so in reality this probably won't be an issue. But it's worth being aware of. In fact, the bigger issue might be that we should be using something that lasts longer, but that's probably out of scope here.

If it's easy to parameterize with the current year, that feels like the safest option. Otherwise, I think getting rid of per-year code changes is worth it in this case.

@clareconstantine clareconstantine changed the base branch from principal-approval-2021 to eyes-staging October 5, 2019 00:25
@clareconstantine clareconstantine changed the base branch from eyes-staging to staging October 5, 2019 00:40
@clareconstantine clareconstantine merged commit 70ef2aa into staging Oct 7, 2019
@clareconstantine clareconstantine deleted the no-year-frontend branch October 7, 2019 23:06
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.

None yet

2 participants