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

9995: Judge/CA: WIP Case Worksheet #3979

Merged
merged 186 commits into from
Sep 21, 2023

Conversation

rachelschneiderman
Copy link
Contributor

image

image

John Cruz added 30 commits July 13, 2023 11:13
@rachelschneiderman rachelschneiderman marked this pull request as draft September 20, 2023 18:09
@rachelschneiderman rachelschneiderman marked this pull request as ready for review September 20, 2023 20:45
Comment on lines +26 to +40
const rawUser = await applicationContext.getPersistenceGateway().getUserById({
applicationContext,
userId: user.userId,
});

const userEntity = new User(rawUser);

let judgeUser;
if (userEntity.isChambersUser() && !userEntity.isJudgeUser()) {
judgeUser = await applicationContext
.getUseCaseHelpers()
.getJudgeInSectionHelper(applicationContext, {
section: userEntity.section,
});
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks repeated from getCaseWorksheetInteractor(...).

I will make a refactoring PR after this gets merged to consolidate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is repeated! Panda squad chatted about DRY-ing this up but actually felt it would obfuscate the work being done in this endpoint more than it would help anything.

docketNumber: cerebralTest.submittedCaseDocketNumber,
status: CASE_STATUS_TYPES.submitted,
worksheet: {
primaryIssue: 'But I don`t feel like dancin`, no sir, no dancin` today',
Copy link
Collaborator

Choose a reason for hiding this comment

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

so many fun song lyrics in this pr

{
docketNumber: MOCK_CASE.docketNumber,
entityName: 'CaseWorksheet',
primaryIssue: 'Superstition ain`t the way',
Copy link
Collaborator

Choose a reason for hiding this comment

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

🎶 ❤️

@mmarcotte mmarcotte merged commit f16c894 into ustaxcourt:staging Sep 21, 2023
35 checks passed
@jimlerza jimlerza mentioned this pull request Sep 24, 2023
3 tasks
@rachelschneiderman rachelschneiderman deleted the 9995-wip-case-worksheet branch October 4, 2023 15:08
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.

4 participants