Work on session proposals and related event person profile.

This commit is contained in:
Scott Idem
2021-09-07 18:49:21 -04:00
parent edd7beb4d7
commit 84aecddc7c
6 changed files with 458 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ async def post_event_person_obj_new_v4(
fail_any: bool = True, # Fail if any thing goes wrong for sub objects
inc_event_badge: bool = False,
inc_event_person_profile: bool = False,
inc_person: bool = False,
inc_user: bool = False,
@@ -64,6 +65,7 @@ async def post_event_person_obj_new_v4(
if load_event_person_obj_result := load_event_person_obj(
event_person_id = event_person_id,
inc_event_badge = inc_event_badge,
inc_event_person_profile = inc_event_person_profile,
inc_person = inc_person,
inc_user = inc_user,
):
@@ -92,6 +94,7 @@ async def patch_event_person_obj_exist_v4(
fail_any: bool = True, # Fail if any thing goes wrong for sub objects
inc_event_badge: bool = False,
inc_event_person_profile: bool = False,
inc_person: bool = False,
inc_user: bool = False,
@@ -124,6 +127,7 @@ async def patch_event_person_obj_exist_v4(
if load_event_person_obj_result := load_event_person_obj(
event_person_id = event_person_id,
inc_event_badge = inc_event_badge,
inc_event_person_profile = inc_event_person_profile,
inc_person = inc_person,
inc_user = inc_user,
):
@@ -154,6 +158,7 @@ async def post_event_person_new(
inc_event: bool = False, # Not ready yet. Placeholder.
inc_event_badge: bool = False, # Not ready yet. Placeholder.
inc_event_person_detail: bool = False, # Not ready yet. Placeholder.
inc_event_person_profile: bool = False,
inc_event_registration: bool = False, # Not ready yet. Placeholder.
inc_person: bool = False,
inc_user: bool = False,
@@ -374,7 +379,7 @@ async def patch_event_person_json(
# Working well as of 2021-06-04. Using as a template for other routes.
@router.get('/event/person/{event_person_id}', response_model=Resp_Body_Base)
async def get_event_person_obj(
event_person_id: str = Query(..., min_length=1, max_length=22),
event_person_id: str = Query(..., min_length=11, max_length=22),
enabled: str = 'enabled', # For now this covers any included objects or object lists
limit: int = 500, # For now this covers any included objects or object lists
inc_address: bool = False, # Under contact
@@ -386,6 +391,7 @@ async def get_event_person_obj(
inc_event_file_list: bool = False,
#inc_event_location_list: bool = False,
#inc_event_person_list: bool = False,
inc_event_person_profile: bool = False,
inc_event_presentation_list: bool = False,
#inc_event_presenter_list: bool = False,
inc_event_registration: bool = False,
@@ -417,6 +423,7 @@ async def get_event_person_obj(
inc_event_file_list = inc_event_file_list,
#inc_event_location = inc_event_location,
#inc_event_person_list = inc_event_person_list,
inc_event_person_profile = inc_event_person_profile,
inc_event_presentation_list = inc_event_presentation_list,
#inc_event_presenter_list = inc_event_presenter_list,
inc_event_registration = inc_event_registration,
@@ -444,6 +451,7 @@ async def get_event_registration_event_person_obj_li(
inc_address: bool = False,
inc_contact: bool = False,
inc_event_badge: bool = False,
inc_event_person_profile: bool = False,
inc_person: bool = False,
# inc_user: bool = False,
x_account_id: str = Header(...),
@@ -472,6 +480,7 @@ async def get_event_registration_event_person_obj_li(
exclude_unset = exclude_unset,
# model_as_dict = model_as_dict,
enabled = enabled,
inc_event_person_profile = inc_event_person_profile,
inc_person = inc_person,
# inc_user = inc_user,
):