Alisha - feature : implementation of bidding page overview backend#1729
Alisha - feature : implementation of bidding page overview backend#1729alishawalunj wants to merge 4 commits intodevelopmentfrom
Conversation
aditya2512
left a comment
There was a problem hiding this comment.
This PR delivers an essential backend upgrade for the property bidding page, introducing comprehensive enhancements to both the bid overview and bid placement workflows. The redesigned getBidOverview endpoint now aggregates and provides all necessary data including listing images, property and village amenities, and current bid status offering a rich API layer for the frontend to present a feature-complete bidding experience. The updated placeBid endpoint not only registers bids with robust validation but also coordinates new notification flows for bidders, highest bid achievements, and alerting outbid users, making the entire process more transparent and user-friendly.
However, before merging, it’s critical to address the current CI build failure to ensure overall application stability. Please also review the impact of the structural and dependency file changes for consistency. Going forward, I recommend complementing these implementation changes with concise API documentation covering endpoint payloads, responses, and expected notification scenarios, which will help QA and frontend integration. Once CI passes and documentation is in place, this update will provide a significant boost to the platform's bidding system.
c8c49ce to
9282572
Compare
9282572 to
7109b45
Compare
7109b45 to
e43553e
Compare
…d added village level amenities
e43553e to
f6daf9b
Compare
|




Description
Related PRS (if any):
This backend PR is related to the #4073 frontend PR.
Main Changes Explained
Updated the
getBidOverviewendpoint to fetch the following data:Updated the
placeBidendpoint to create a record in thebidcollection and generate notifications:How to test:
check into current branch
do
npm installand...to run this PR locallyClear site data/cache
log as admin user
Test the following endpoints in Postman to verify functionality:
Get bid overview for a listing (GET)
Submit a bid and generate notifications (POST)
Request Body:
{ "user_id": "6415352c7de88c396c3bf646", "property_id": "681fdf349b28a081622ba779", "bid_amount": 89, "start_date": "2025-11-15T00:00:00.000Z", "end_date": "2025-12-20T00:00:00.000Z" }Verify notifications by placing once low and high bid amount.
For additional
listingIdsto test, refer to thelistingscollection in the database.Make sure to add token in Headers for Authorization.
Screenshots or videos of changes:
Token Generation
Endpoints to be tested