Dharmik/backend/draw donut chart showing different types of material used backend resolving build#1596
Conversation
…nt types of material used backend
csk731
left a comment
There was a problem hiding this comment.
I reviewed this PR by running the branch locally. Everything appears to be functioning correctly, and all API responses are as expected.
However, I was able to call the APIs using a normal user authentication token instead of a BM Dashboard token. If this behavior is intentional and aligns with the requirements, then everything looks good.
sohailuddinsyed
left a comment
There was a problem hiding this comment.
Tested both APIs as per the given instructions.
- GET /api/bm/projectsNames API returns only project _id and name fields from active projects as expected.
- GET /api/bm/materials/:projectId API supports the materialType query parameter to filter by material type and returns expected result.
- The API also supports increaseOverLastWeek query param to filter materials that have shown usage activity in the last 7 days and returns the expected values.
sirisudheeksha
left a comment
There was a problem hiding this comment.
After signing in with both the regular and BM logins and sending requests with the tokens, I checked /api/bm/projectsNames, which returns just the project IDs and names. I hit the /api/bm/materials/:projectId endpoint both with and without the materialType and increaseOverLastWeek filters. everything works well
Requesting ChangesBoth API endpoints worked as expected, however, I was able to retrieve information with the normal login token for http://localhost:4500/api/bm/materials/{projectId}. Please review if it were intentional.
|
|
Thank you all, merging! |
* Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com>
* Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) * Guirong-Make mousing over a task show who added/created the task (#1474) * feat: Add task creator information for mouseover display - Add createdBy field to task model - Update task controller to include creator information - Add creator name to task responses for frontend display * -Resolve failed test * CreatorName passed to frontend * Test fixed --------- Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Revert "Guirong-Make mousing over a task show who added/created the task" (#1711) Revert "Guirong-Make mousing over a task show who added/created the task (#1474)" This reverts commit d2459a4. --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> Co-authored-by: Guirong Wu <619917585@qq.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local>
* Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) * Guirong-Make mousing over a task show who added/created the task (#1474) * feat: Add task creator information for mouseover display - Add createdBy field to task model - Update task controller to include creator information - Add creator name to task responses for frontend display * -Resolve failed test * CreatorName passed to frontend * Test fixed --------- Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Revert "Guirong-Make mousing over a task show who added/created the task" (#1711) Revert "Guirong-Make mousing over a task show who added/created the task (#1474)" This reverts commit d2459a4. * Venkataramanan fix: add resources problem in UI (#1714) fix: add resources problem in UI Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <76655727+sundarmachani@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> Co-authored-by: Guirong Wu <619917585@qq.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local>
* Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) * Guirong-Make mousing over a task show who added/created the task (#1474) * feat: Add task creator information for mouseover display - Add createdBy field to task model - Update task controller to include creator information - Add creator name to task responses for frontend display * -Resolve failed test * CreatorName passed to frontend * Test fixed --------- Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Revert "Guirong-Make mousing over a task show who added/created the task" (#1711) Revert "Guirong-Make mousing over a task show who added/created the task (#1474)" This reverts commit d2459a4. * Venkataramanan fix: add resources problem in UI (#1714) fix: add resources problem in UI Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Venkataramanan fix: quick setup codes error in user profile page (#1719) fix: quick setup codes error in user profile page Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> Co-authored-by: Guirong Wu <619917585@qq.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local>
* Backend Release to Main [2.51] (#1679) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> --------- Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <76655727+sundarmachani@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Backend Release to Main [2.52] (#1681) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController --------- Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <76655727+sundarmachani@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> * Sundar: dev to main release 2.53 (#1692) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2c72b52d6e022b50f139aecae63a8bf731. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Sundar 2.54 (#1697) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2c72b52d6e022b50f139aecae63a8bf731. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> * Sundar: dev to main 2.55 (#1706) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2c72b52d6e022b50f139aecae63a8bf731. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * Sundar 2.56 (#1712) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2c72b52d6e022b50f139aecae63a8bf731. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) * Guirong-Make mousing over a task show who added/created the task (#1474) * feat: Add task creator information for mouseover display - Add createdBy field to task model - Update task controller to include creator information - Add creator name to task responses for frontend display * -Resolve failed test * CreatorName passed to frontend * Test fixed --------- Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Revert "Guirong-Make mousing over a task show who added/created the task" (#1711) Revert "Guirong-Make mousing over a task show who added/created the task (#1474)" This reverts commit d2459a4818c64b5b8ddf41a9e7442b9e08d4d506. --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> Co-authored-by: Guirong Wu <619917585@qq.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Diya fix merge conflicts on 2.57 (#1717) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2c72b52d6e022b50f139aecae63a8bf731. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) * Guirong-Make mousing over a task show who added/created the task (#1474) * feat: Add task creator information for mouseover display - Add createdBy field to task model - Update task controller to include creator information - Add creator name to task responses for frontend display * -Resolve failed test * CreatorName passed to frontend * Test fixed --------- Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Revert "Guirong-Make mousing over a task show who added/created the task" (#1711) Revert "Guirong-Make mousing over a task show who added/created the task (#1474)" This reverts commit d2459a4818c64b5b8ddf41a9e7442b9e08d4d506. * Venkataramanan fix: add resources problem in UI (#1714) fix: add resources problem in UI Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <76655727+sundarmachani@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> Co-authored-by: Guirong Wu <619917585@qq.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Sundar 2.57 (#1721) * Amalesh - BmDashboard Unit tests (#1461) * First * Second * Third * Fourth * Fourth * Amalesh - Unit Tests for faqController, jobsController, titleController, timeEntryController (#1487) * First File * Second File * Third File * Final * Unit tests for faqController.js - Added * Unit tests for faqController.js - Added * Unit tests for jobsController.js - Added * Unit tests for jobsController.js - Added * Unit tests for titleController.js - Added * Unit tests for timeEntryController.js - Added * Ashrita update consumable form (#1262) * Revert "Backend Release to Main [2.11]" * Revert "Revert "Backend Release to Main [2.11]"" * Updated-Consumable-Form --------- Co-authored-by: One Community <one-community@users.noreply.github.com> * Revert "Amalesh - BmDashboard Unit tests" (#1675) Revert "Amalesh - BmDashboard Unit tests (#1461)" This reverts commit 775cebc1c384ca8089a22f0a69034c4fe11a1625. * Venkataramanan fix: teams tab to display with no members (#1673) * fix: teams tab to display with no members * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Vamsi Krishna - Added 'viewTaskExtensionCount' permission to Owner & Admin (#1326) Added viewTaskExtensionCount permission to Owner&Admin * Manoj cost prediction line chart (#1528) * Models, router,controller * new endpoint forprojectIDs * new endpoint forprojectIDs * no date range options * setup files and routes * Beckend Poiints logic implemented * backup * backup * replaced pprediction using ml-regression library * duplicatefix * fix: update package-lock.json to resolve npm ci issues * fix: regenerate package-lock.json with Node.js 20 to resolve Azure storage blob compatibility * fix: use working package-lock.json from development branch to resolve npm ci issues * Sundar: fix test failure in createTestPermissions.js (#1680) fix(tests): fix test failures Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> * Meenashi HGN Questionnaire Dashboard: Implement Additional Notes and Work Experience (#1499) * feat: fix user_id mismatch in HGNFormResponses and add mern_work_experience field * fix: remove leftover debug logs * feat: add edit functionality for userSkillsFollowup section * fix(getUserProfileBasicInfo): retrieve basic info when userId is provided * fix: Implement word count as a separate function with improved basic validation; sort by latest before updating HgnFormResponses * fix: add logging for input parameter * Shashank madan create grouped bar graph for number of issues by type backend (#1651) * feat: load issue data to frontend * fix: correct typo affecting chart result formatting * fix: lockfile changed according to node 14 * Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678) * fix: fixed bug in hours logic * fix: resolve eslint errors in profileInitialSetupController * Meenashi takeover Anjali - Phase 3 - Optimize Follow-Up Email Templates and Feedback Form (#1647) * fix: save eventFeedback to the collection * fix: remove non-null validation from comments field * chore: remove log messages * Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate" (#1689) Revert "Ramsundar - Fix Weekly Summaries report hours are inaccurate (#1678)" This reverts commit fe553d2c72b52d6e022b50f139aecae63a8bf731. * Kristin add defaultpassword field for create new user form (#1414) * fix: change error code from 501 to 400 in userProfileController * update schema * update controller --------- Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> * Kristin Move Default Password Modification Prevention Block (#1691) fix: move default password modification prevention block * Dharmik/backend/finish creating way to save a team code filter set (#1529) * feat(backend): integration to save team code filters * chore: modified team code filter in weekly summarries report page * chore: updated package-lock.json file * Venkataramanan fix: email sending issue (#1695) fix: email sending issue Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Shashank madan hgn dashboard linking backend fix and finish PR 1649 (#1698) chore: changes from pr 1649 * Venkataramanan 🔥 email sending issue when clicking report app bug and suggestions (#1700) * fix: email sending issue when clicking report app bug and suggestions * fix: failing tests --------- Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Dharmik/backend/draw donut chart showing different types of material used backend resolving build (#1596) * implement Phase 2 Summary Dashboard: Draw Donut Chart showing different types of material used backend * fix invalid material ID * fix: resolve build failure caused by undefined route handlers * chore: removed unnecessary console logs * fix: resolve build failures and test errors * fix: add dropbox dependency and regenerate package-lock.json for Node.js v14.21.3 * fix: resolve MongoDB connection issues in CI environments * fix: add MongoDB connection readiness checks to prevent timeout errors * fix: add MongoDB connection readiness checks and timeout improvements for CI * fix: increase Jest timeout to 60 seconds for CI environments * refactor: completely rewrite MongoDB integration tests for CI robustness * fix: simplify MongoDB integration tests to bypass Memory Server issues * fix: simplify integration tests to only test 401 unauthorized cases --------- Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> * Chaitanya: Access Management Fixes (#1683) * feat(dropbox): use folder_id for access tracking, add invite/delete methods with error handling * feat(sentry): auto-assign users to all teams on invitation * feat(sentry): auto-remove users from all teams the user is in and the organisation on revocation * feat: add dropbox folder selection functionality for inviting users * fix: comprehensive Dropbox and Sentry integration improvements with input validation and error handling * refactor: remove commented-out console logs and improve error handling in Dropbox and Sentry controllers * Anirudh SK (Old PR Conflicts fix) - Jay - Add Controller Logic for Modify Badge Amount Permission (#690) * add controller logic for modify badge amount * added changes * Test issue fix * Test issue fix #2 * Fixed the "canManageAdminLinks is not defined" error --------- Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> * fix: resolve test failures in sentry service (#1703) * Guirong-Make mousing over a task show who added/created the task (#1474) * feat: Add task creator information for mouseover display - Add createdBy field to task model - Update task controller to include creator information - Add creator name to task responses for frontend display * -Resolve failed test * CreatorName passed to frontend * Test fixed --------- Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> * Revert "Guirong-Make mousing over a task show who added/created the task" (#1711) Revert "Guirong-Make mousing over a task show who added/created the task (#1474)" This reverts commit d2459a4818c64b5b8ddf41a9e7442b9e08d4d506. * Venkataramanan fix: add resources problem in UI (#1714) fix: add resources problem in UI Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> * Venkataramanan fix: quick setup codes error in user profile page (#1719) fix: quick setup codes error in user profile page Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> Co-authored-by: Guirong Wu <619917585@qq.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> --------- Co-authored-by: One Community <one-community@users.noreply.github.com> Co-authored-by: Amalesh Arivanan <92014450+Amalesh-A@users.noreply.github.com> Co-authored-by: Ashrita Cherlapally <160983565+AshritaCherlapally@users.noreply.github.com> Co-authored-by: Venkataramanan <59522101+Venk-rgb@users.noreply.github.com> Co-authored-by: Venkataramanan Venkateswaran <venk@Venkataramanans-MacBook-Air.local> Co-authored-by: Vamsi Krishna Rolla <63103226+vamsikrishna1704@users.noreply.github.com> Co-authored-by: Manoj99Q <144982472+Manoj99Q@users.noreply.github.com> Co-authored-by: Sundar Machani <sundarmachani@Sundars-MacBook-Pro.local> Co-authored-by: jeyanthi-sm <111299753+jeyanthi-sm@users.noreply.github.com> Co-authored-by: Shashank Udyavar Madan <52149707+shashank-madan@users.noreply.github.com> Co-authored-by: Ramsundar Konety Govindarajan <78085456+Ram-blip@users.noreply.github.com> Co-authored-by: Kristin Hu <46657300+KH07@users.noreply.github.com> Co-authored-by: Ghazi1212 <120700277+Ghazi1212@users.noreply.github.com> Co-authored-by: Dharmik Patel <47842695+Dharmik1710@users.noreply.github.com> Co-authored-by: niccccccccer <749175994@qq.com> Co-authored-by: Xiaolei Zhao <71137238+niccccccccer@users.noreply.github.com> Co-authored-by: Chaitanya Swaroop Kumar Allu <58213944+csk731@users.noreply.github.com> Co-authored-by: Jay <118868270+Alforoan@users.noreply.github.com> Co-authored-by: anirudhsk2107 <sampathkumar.an@northeastern.edu> Co-authored-by: Anirudh SK <anirudhsk2107@gmail.com> Co-authored-by: Guirong Wu <619917585@qq.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujismbp.mynetworksettings.com> Co-authored-by: 喜喜懒羊羊 <luckyyangyang@kikihitsujis-MacBook-Pro.local> Co-authored-by: Diya Wadhwani <wadhwani2399@gmail.com>












Description
Related PRS (if any):
None
…
Main changes explained:
Supports materialType query parameter to filter by material type.
Supports increaseOverLastWeek=true to filter materials that have shown usage activity in the last 7 days.
Returns: availableMaterials, usedMaterials, wastedMaterials, increaseOverLastWeek (percentage).
Returns only project _id and name fields from active projects.
How to test:
check into current branch
do
npm installandnpm run devto run this PR locallyGet authentication token (normal user)
Make a POST request to:
http://localhost:4500/api/login
Request body (replace with your own credentials):
Get authentication token (BM Dashboard user)
Make a POST request to:
http://localhost:4500/api/bm/login
Headers:
Authorization: your-token
Request body (replace with your own credentials):
Test GET http://localhost:4500/api/bm/materials/{projectId}
Headers:
Authorization: your-token (BM Dashboard user)
Query parameters optional:
Test GET http://localhost:4500/api/bm/projectsNames
Authorization: your-token (BM Dashboard user)
http://localhost:4500/api/bm/materials/654946b2bc5772e8caf7e962?materialType=666215b5ce887b3a3337f17c