-
Notifications
You must be signed in to change notification settings - Fork 33
[$50]Fix weekly-count for taas-teams #16
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
Comments
Contest https://www.topcoder.com/challenges/30154003 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30154003 has been updated - it has been assigned to aaron2017. |
@veshu I tried to extract the business logic about the weekly count from the source code, as follows: For a team, for every resource bookings of the team, only when the resource booking was started before the first day of current week and is to be ended after the last day of current week, the customer rate of the resource booking would be added to weekly count(cost). Let's take an example, say, today is Nov 27, so the beginning of this week is Nov 22(Sunday) and the end of this week is Nov 28(Saturday).
{
"projectId": 61,
"userId": "3f64739e-10bf-42ca-8314-8aea0245cd0f",
"jobId": "0c1e518f-7aad-47f6-81e1-1d0aedb1e9b6",
"startDate": "2020-09-27T04:17:23.131Z",
"endDate": "2020-09-27T04:17:23.131Z",
"memberRate": 61,
"customerRate": 61,
"rateType": "weekly",
"createdAt": "2020-11-18T08:24:59.286Z",
"createdBy": "a55fe1bc-1754-45fa-9adc-cf3d6d7c377a",
"status": "sourcing",
"id": "c8189e84-6cd6-41f8-bbf5-0c692a38594d"
}
{
"projectId": 16705,
"userId": "df2f0027-f74f-45fa-85cd-84c9fdc2faf4",
"jobId": "2de6b167-8c6a-44dd-a6a2-8abd8bf6443b",
"startDate": "2020-11-15T04:17:23.131Z",
"endDate": "2020-12-15T04:17:23.131Z",
"memberRate": 200,
"customerRate": 200,
"rateType": "weekly",
"createdAt": "2020-11-18T16:24:02.682Z",
"createdBy": "a55fe1bc-1754-45fa-9adc-cf3d6d7c377a",
"status": "assigned",
"updatedBy": "a55fe1bc-1754-45fa-9adc-cf3d6d7c377a",
"updatedAt": "2020-11-18T16:24:56.797Z",
"id": "a7a65205-d7c5-4725-a1db-923543e621b1"
} Is current implementation desired? If not, please tell me what it should be so that I can fix it. |
@imcaizheng if the startdate and end date overlaps the current week then only show. |
Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30154003 |
@wdprice
@imcaizheng |
@nkumar-topcoder |
@veshu need your input. We have weekly count vs weekly cost and time remaining in week. can you pls clarify how these calculated and displayed at frontend. |
Going by our earlier challenge |
what does weekly count mean? |
The weekly count is output of {{URL}}/taas-teams/{projectid} { |
oh @nkumar-topcoder we can rename that field to |
Closing this issue as it's done per description and created a new one to handle renaming #47 |
* Get User Meeting Settings Endpoint Fixes topcoder-platform#9 Signed-off-by: Alessandro De Blasis <[email protected]> * Get User Meeting Settings Endpoint Fixes topcoder-platform#9 Signed-off-by: Alessandro De Blasis <[email protected]>
http://api.topcoder-dev.com/v5/taas-teams
Currently, teams are listed but the calculation for the weekly count is coming as zero. This has to be fixed
Branch: Dev
The text was updated successfully, but these errors were encountered: