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

[TM-5984] Maintain Assignments Remediation #2982

Merged
merged 7 commits into from
May 15, 2024

Conversation

jlam-mpc
Copy link

@jlam-mpc jlam-mpc commented May 7, 2024

Changes:

Dual Merge:

TM-5984

@jlam-mpc jlam-mpc added the WIP Work in progress label May 7, 2024
@github-actions github-actions bot added the size/M label May 7, 2024
Comment on lines +179 to +181
tod_months_num: todMonths || null,
tod_other_text: todOther || null,
tod_adjust_months_num: null,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this all looks familiar ... i think you have it right 🤔

i have some API code commented that says # only custom/other TOD should have months and other_text meaning, that the tod_months and tod_other_text values don't get sent to the frontend (in that specific section) UNLESS, the TOD is 'other,' and then the same the other way around (so only send months & other_text if TOD is 'other')

hope that makes sense lol - this looks right to me

Copy link
Collaborator

@M00staff M00staff left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines +124 to +136
if (isNew) {
/* eslint-disable quote-props */
sections.subheading = [
{ 'Position Number': pos_results?.pos_num_text || NO_POSITION_NUMBER },
{ 'Position Title': pos_results?.pos_title_desc || NO_POSITION_TITLE },
{ 'Bureau': pos_results?.pos_bureau_short_desc || NO_BUREAU },
{ 'Location': pos_results?.pos_location_code || NO_POST },
{ 'Org': pos_results?.pos_org_short_desc || NO_ORG },
{ 'Grade': pos_results?.pos_grade_code || NO_GRADE },
{ 'Pay Plan': pos_results?.pos_pay_plan_code || NO_GRADE },
];
/* eslint-enable quote-props */
}

Choose a reason for hiding this comment

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

I originally had this in the useEffect bc it wouldn't render changes on different pos num searches. It works fine without it now, did I miss something from an earlier change that would track pos_results changes? Or is it automatic re-renders from useSelector and I'm just dumb?

@scott062
Copy link

Noticed Disabled inputs - is that aligned with FSBID currently?

@scott062 scott062 merged commit 6d9c24b into dev May 15, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants