bloom-housing / bloom

component-based web framework for affordable housing management
Apache License 2.0
34 stars 24 forks source link

Release/listing duplication #4330

Closed mcgarrye closed 1 week ago

mcgarrye commented 1 week ago

This PR addresses #(insert-number-here)

Description

Releases: https://github.com/bloom-housing/bloom/pull/4313 https://github.com/bloom-housing/bloom/pull/4307 https://github.com/bloom-housing/bloom/pull/4314

How Can This Be Tested/Reviewed?

Run partner portal and api and login as a admin user. Have the listing id for the listing you would like to duplicate. Fill out the payload for listings/duplicate. Set storedListing.id to the above. Cases:

Set name to a unique name, set includeUnits to true. Should create a new draft listing with the name given which is otherwise identical to the original listing, including the units. Set name to a unique name, set includeUnits to false. Should create a new draft listing with the name given which is otherwise identical to the original listing, excluding the units. Set name to a the same name as the original listing. Should error with 400 BadRequest and a message 'New listing name must be unique'. You can view the newly created in the Partners Portal

Author Checklist:

Review Process: