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

PSP-7271 : Create/Edit Offer (Disposition) #3683

Merged
merged 9 commits into from
Jan 2, 2024

Conversation

eddherrera
Copy link
Collaborator

image

@eddherrera eddherrera self-assigned this Dec 28, 2023
@eddherrera eddherrera added the enhancement New feature or request label Dec 28, 2023
@devinleighsmith
Copy link
Collaborator

(Grammar)
An Offer with 'Accepted' status already exist.
->
An Offer with 'Accepted' status already exists.


public PimsDispositionOffer AddDispositionFileOffer(long dispositionFileId, PimsDispositionOffer dispositionOffer)
{
_logger.LogInformation("Getting disposition file offers with DispositionFileId: {id}", dispositionFileId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: log message is not correct.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

@@ -8,7 +8,7 @@ public class DispositionFileOfferModel : BaseConcurrentModel
/// <summary>
/// get/set - The relationship id.
/// </summary>
public long Id { get; set; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this actually nullable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For new offers the value comes as null.

@@ -53,16 +55,31 @@ export const DispositionRouter: React.FC<IDispositionRouterProps> = props => {
</Route>
<AppRoute
exact
path={`${stripTrailingSlash(path)}/${FileTabType.OFFERS_AND_SALE}/addOffer`}
path={`${stripTrailingSlash(path)}/${FileTabType.OFFERS_AND_SALE}/offers/new`}
Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, this is better.

const { setModalContent, setDisplayModal } = useModalContext();
const [offerStatusError, setOfferStatusError] = useState(false);

const backUrl = location.pathname.split('/offers/new')[0];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure I love this pattern. Is this what we are doing in acquisition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was used for Form8

return postDispositionOffer(dispositionFileId, newOffer);
};

const handleSucces = async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: success

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

Eduardo Herrera added 2 commits January 2, 2024 09:13
# Conflicts:
#	source/backend/api/Services/DispositionFileService.cs
#	source/backend/tests/unit/api/Services/DispositionFileServiceTest.cs
@eddherrera eddherrera merged commit c517e08 into bcgov:disposition Jan 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants