Skip to content

Purchase request resource files#103

Open
Blaze34536 wants to merge 4 commits intomainfrom
PurchaseRequestResourceFiles
Open

Purchase request resource files#103
Blaze34536 wants to merge 4 commits intomainfrom
PurchaseRequestResourceFiles

Conversation

@Blaze34536
Copy link
Contributor

fully implemented and tested the purchase request service

@Blaze34536 Blaze34536 linked an issue Nov 17, 2025 that may be closed by this pull request
Copy link
Member

@DamienVesper DamienVesper left a comment

Choose a reason for hiding this comment

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

See comments below.

[HttpGet]
public async Task<IActionResult> GetAllPurchaseAsync([FromQuery] PurchaseRequestSearchDto? dto)
{
var result = await _purchaseRequestService.GetAllPurchaseRequestsAsync(dto ?? new PurchaseRequestSearchDto());
Copy link
Member

Choose a reason for hiding this comment

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

Why are we making a new DTO here? There should only exist 1 instance of a DTO as it's a singleton.

return Ok(result);
}

[HttpGet("{id:guid}", Name = "GetPurchaseRequestById")]
Copy link
Member

Choose a reason for hiding this comment

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

Use {id} instead.

Copy link
Member

Choose a reason for hiding this comment

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

Need to be able to search by informal ID (i.e. TR26-001), author, and subsystem.

Copy link
Member

Choose a reason for hiding this comment

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

This is incomplete.

Copy link
Member

Choose a reason for hiding this comment

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

This is incomplete.

Copy link
Member

Choose a reason for hiding this comment

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

Needs to handle upserts.

Copy link
Member

Choose a reason for hiding this comment

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

Opt to use the .env instead.

@DamienVesper DamienVesper changed the base branch from backend to main November 25, 2025 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backend - Create Purchase Request Resource Files

2 participants