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-6123, TM-6126, Re-Interate Projected Vacancy #1017

Merged
merged 6 commits into from
Jun 11, 2024

Conversation

M00staff
Copy link

@M00staff M00staff commented Jun 11, 2024

Dual Merge:

Ticket
Ticket

**response,
"combinedppgrade": combine_pp_grade(response.pospayplancode, response.posgradecode),
}
return response
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we revert this change? I added a combined pp grade field similarly to other list endpoints that display a joint PP and grade field.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's still returning all of the base response, just adding a new field on top of that

Choose a reason for hiding this comment

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

spoke with moose about it, it was cause it was erroring cause of the dot notation - pulling with a get should fix 💪

@@ -9,7 +9,7 @@
url(r'^filters/$', views.FSBidAdminProjectedVacancyFiltersView.as_view(), name="admin-projected-vacancies-filters"),
url(r'^language_offset_options/$', views.FSBidAdminProjectedVacancyLangOffsetOptionsView.as_view(), name="admin-projected-vacancies-lang-offset-options"),
url(r'^$', views.FSBidAdminProjectedVacancyListView.as_view(), name="admin-projected-vacancies"),
url(r'^edit/$', views.FSBidAdminProjectedVacancyActionsView.as_view(), name='admin-projected-vacancies-actions'),
url(r'^edit/$', views.FSBidAdminProjectedVacancyActionsView2.as_view(), name='admin-projected-vacancies-actions'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a need to rename all of these functions with a 2 at the end? I don't find it necessary

Copy link
Author

Choose a reason for hiding this comment

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

whoops forgot to fix that!

Copy link
Author

Choose a reason for hiding this comment

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

its how i originally tested it all without deleting or changing the ones i was gonna replace

Copy link
Author

Choose a reason for hiding this comment

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

VERY good catch btw!

'''
Edit Admin Projected Vacancy
'''
fvseqnum = query.get("data", {})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the default be None or "" instead of {}? it doesn't quite matter right because {} in the uri string shouldn't throw any warnings?

Copy link
Author

@M00staff M00staff Jun 11, 2024

Choose a reason for hiding this comment

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

yea - i think either way it would fail the same

i just ripped it from the edit panel meeting stuff
image

but, now i see why its not apples to apples
image

Copy link
Author

Choose a reason for hiding this comment

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

fixed!

M00staff and others added 2 commits June 11, 2024 12:43
Co-authored-by: elizabeth-jimenez <elizabeth.jimenez.cs@gmail.com>
@M00staff M00staff requested a review from jlam-mpc June 11, 2024 16:51
@M00staff M00staff merged commit 1dda339 into dev Jun 11, 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
Development

Successfully merging this pull request may close these issues.

3 participants