Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
2e9c178
Merge branch 'main' of https://github.com/OneCommunityGlobal/HGNRest …
SammanBaidya Jul 3, 2025
39546ec
merge conflict fix
SammanBaidya Jul 16, 2025
23aa4ed
feat: modfiy fetchBMEquipments to accept filter by project
SammanBaidya Jul 16, 2025
cc12f27
Merge branch 'development' into Tool/Equipment-History
SammanBaidya Jul 22, 2025
42e0cf5
Merge remote-tracking branch 'origin/development' into Tool/Equipment…
vamsidharpanithi Jul 25, 2025
cbba9be
Fix test syntax
vamsidharpanithi Jul 25, 2025
9458310
Fix failing tests and resolve merge conflicts
vamsidharpanithi Jul 25, 2025
66a54f3
Merge branch 'development' into Tool/Equipment-History
vamsidharpanithi Jul 31, 2025
00878f0
Resolve merge conflict in dailyMessageEmailNotification.js
vamsidharpanithi Jul 31, 2025
8fe3e3b
chore: Resolving merge conflicts
vamsidharpanithi Aug 9, 2025
0ef2cea
chore(filterColor): add backend file for filterColor logic
TaariqMansurie Aug 10, 2025
885878f
pushing my changes for filterColor and select All functionality
TaariqMansurie Aug 17, 2025
440c8d4
fixing merge conflicts with the dev branch
TaariqMansurie Aug 17, 2025
11efe83
pushing the changes for filter Color and Select All Functionality
TaariqMansurie Aug 31, 2025
f4bcdde
Restored files from dev instead of deleting
TaariqMansurie Aug 31, 2025
27a70c6
Fix casing and update dashboard/fix tests
TaariqMansurie Sep 3, 2025
39a8de9
Fix casing for WeeklySummaryEmailAssignmentController/Route.js & pass…
TaariqMansurie Sep 3, 2025
581414a
fix: Resolving the merge conflicts
TaariqMansurie Sep 6, 2025
519453b
fix: fixed the merged conflicts and pushing the code now
TaariqMansurie Sep 27, 2025
fe98462
fix: fixed and upgraded the node version for this particular PR branc…
TaariqMansurie Oct 9, 2025
228f94e
fixed the merge conflicts and now its up to date with the dev branch
TaariqMansurie Oct 16, 2025
94d4f6c
feat: boilerplate code for assign-atoms api
shashank-madan Oct 16, 2025
25b9557
Added role verification and logging to check correct API behaviour
shashank-madan Oct 22, 2025
c796fa3
Added error handling and removed console logging
shashank-madan Oct 22, 2025
de781e6
fix: fixed the errors that were preventing the page to load correctly
TaariqMansurie Oct 25, 2025
ff4f053
fix: fixing the merge conflicts and doing lint fixes
TaariqMansurie Oct 25, 2025
6a27a44
fix: fixing the merge conflicts and doing lint fixes except the userH…
TaariqMansurie Oct 25, 2025
a8aa352
fix: updating the package.json file for installing sharp on linux env…
TaariqMansurie Oct 25, 2025
32e6af6
chore: refactor to allow multiple atom assignments from single request
shashank-madan Oct 27, 2025
980af52
chore: added get atoms router and controller to fetch list of all atoms
shashank-madan Oct 29, 2025
3bfe665
feat: implement Mastodon post management functionality
tanmay-ar0ra Oct 29, 2025
81d6b07
fix: resolving the merge conflicts and pushing my changes
TaariqMansurie Nov 1, 2025
ea3b42b
fix: changing node.js.yaml file a bit to pass the failing test
TaariqMansurie Nov 1, 2025
cae0137
fix: resolving merge conflicts with the dev branch
TaariqMansurie Nov 9, 2025
ce53ae2
fix: resolving the merge conflicts and also pushing the final code fo…
TaariqMansurie Nov 16, 2025
21f49d0
fix: resolving the merge conflicts for the userProfileController file
TaariqMansurie Nov 16, 2025
fa82cb1
chore: Replaced s3 uploads by azure blob using existing Azue blob upl…
shashank-madan Nov 27, 2025
656b19e
fix: resolving merge conflicts and solving one critical issue and wri…
TaariqMansurie Dec 2, 2025
e941ae8
ci: fixing sharp install for Github CI
TaariqMansurie Dec 2, 2025
f6fa39d
feat: Added weeky pr grading model
shashank-madan Dec 2, 2025
61d0148
feat: Add weekly grading controller
shashank-madan Dec 4, 2025
2416153
feat: add weekly grading router and register routes
shashank-madan Dec 4, 2025
63a0777
feat: added versioning
shashank-madan Dec 9, 2025
05f7aa4
fix: resolved the merge conflicts
TaariqMansurie Dec 10, 2025
2e8b839
feat: Add Mastodon API integration backend
Dec 14, 2025
ce22b26
feat: Backend API for LiveJournal with Cloudinary and IP ban fix
Dec 25, 2025
77ede3b
fix: add all-logs endpoint and fix member lookup in aggregation pipeline
vamsidharpanithi Jan 8, 2026
c8c5de7
chore: merge development into Tool/Equipment-History branch
vamsidharpanithi Jan 9, 2026
4c981de
chore: add missing educationPortal badge model files
vamsidharpanithi Jan 9, 2026
c95d490
chore: add missing badgeSystemRouter file
vamsidharpanithi Jan 9, 2026
a80f959
chore: add missing educationPortal badge files
vamsidharpanithi Jan 9, 2026
75bd222
chore: allow warnings in linting to prevent CI failures
vamsidharpanithi Jan 9, 2026
5818b3c
build: add ownerMessageLog and logging logic to ownerMessageController
JuliaHa0902 Jan 15, 2026
cb5c712
build: add api router to get ownerMessageLogs
JuliaHa0902 Jan 16, 2026
c142da8
feat: Add Truth Social auto-poster backend with proxy endpoint
Jan 20, 2026
3498d2b
fix: resolving merge conflicts
TaariqMansurie Jan 21, 2026
e0cb217
fix: resolved the merge conflicts and now pushing the code for the fi…
TaariqMansurie Jan 23, 2026
e1eb2ac
Change import style for express in liveJournalRoutes
apoorvajainrp21 Jan 23, 2026
33c1c07
Refactor imports and export syntax in liveJournalRoutes
apoorvajainrp21 Jan 23, 2026
a549680
Fix import of liveJournalRoutes in routes.js
apoorvajainrp21 Jan 23, 2026
54d7947
fix: Modify the ownerMessageLog modal
JuliaHa0902 Jan 23, 2026
3ef49b3
Merge pull request #1667 from OneCommunityGlobal/taariq_fixing_angads…
one-community Jan 23, 2026
7266027
Merge pull request #1925 from OneCommunityGlobal/shashank-madan-uploa…
one-community Jan 23, 2026
5dd0abe
Merge pull request #1975 from OneCommunityGlobal/feature/livejournal-…
one-community Jan 24, 2026
add2959
Merge pull request #2011 from OneCommunityGlobal/apoorva-truthsocial-…
one-community Jan 24, 2026
ae2816e
Merge branch 'development' into apoorva-mastodon-autoposter
apoorvajainrp21 Jan 24, 2026
be92aa4
fix: Regenerate package-lock.json to fix dependency sync
Jan 24, 2026
e0dc358
Merge pull request #1953 from OneCommunityGlobal/apoorva-mastodon-aut…
one-community Jan 24, 2026
89563b5
fix: Diya fix login issue
DiyaWadhwani Jan 24, 2026
d5df635
Merge branch 'development' into shashank-madan-assign-atoms-backend
shashank-madan Jan 24, 2026
e17fb48
Merge pull request #2016 from OneCommunityGlobal/Diya_login_fix
one-community Jan 24, 2026
5250a8a
fix: Enable X button functionality for canDeleteTask permission
Ram-blip Jan 24, 2026
7bc1f58
Merge pull request #1877 from OneCommunityGlobal/shashank-madan-assig…
one-community Jan 24, 2026
f27be25
Merge pull request #1947 from OneCommunityGlobal/shashank-madan-pr-gr…
one-community Jan 26, 2026
6766742
Merge pull request #2017 from OneCommunityGlobal/Finished-the-X-butto…
one-community Jan 29, 2026
d82f375
fix(userStatus): Modified UserStatus Flow
DiyaWadhwani Jan 29, 2026
9834f24
fix(logs): removed test log
DiyaWadhwani Jan 29, 2026
012b27e
build: add pagination to the api
JuliaHa0902 Jan 29, 2026
d25c5ef
chore(fix): mod for failing test
DiyaWadhwani Jan 29, 2026
6a0ee25
fix: put user profile function
Jan 30, 2026
4be64f5
Merge pull request #2023 from OneCommunityGlobal/venkataramanan_fix_p…
one-community Jan 30, 2026
90c10db
Merge pull request #2021 from OneCommunityGlobal/Diya_Fix_UserStatus_…
one-community Jan 30, 2026
9c12096
merge: resolve conflicts with development branch
vamsidharpanithi Feb 1, 2026
521331e
test(coverage): add tests for automationConstants, cache, and htmlCon…
vamsidharpanithi Feb 1, 2026
a284b5e
Merge pull request #1994 from OneCommunityGlobal/Vamsidhar-fix/time-l…
one-community Feb 1, 2026
3ab7bd8
Merge pull request #1540 from OneCommunityGlobal/Tool/Equipment-History
one-community Feb 1, 2026
8d85b62
fix: resolving merge conflicts
TaariqMansurie Feb 3, 2026
6faaee1
fix: log statements for email fix
Feb 3, 2026
8b4b9be
Merge pull request #2027 from OneCommunityGlobal/venkataramanan_log_s…
one-community Feb 3, 2026
1ff4323
Merge pull request #2022 from OneCommunityGlobal/julia-log-owner-mess…
one-community Feb 4, 2026
2b77956
fix(bsHistory): Fixed Blue Square History Ordering in emails
DiyaWadhwani Feb 5, 2026
1c7c9e6
Merge pull request #2030 from OneCommunityGlobal/Diya_Fix_BSHistoryOrder
one-community Feb 5, 2026
0ba3292
fix(PR Analytics): Include PR-only teams in Teams filter dropdown
Ram-blip Nov 16, 2025
4189610
Merge pull request #1906 from OneCommunityGlobal/PR_Review_Team_Analy…
one-community Feb 6, 2026
95df6c7
Merge pull request #2026 from OneCommunityGlobal/taariq_fixing_angads…
one-community Feb 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"presets": ["@babel/preset-env"],
"plugins": [
"@babel/plugin-transform-async-to-generator",
[
"@babel/plugin-transform-runtime",
{
"corejs": false,
"helpers": true,
"regenerator": true,
"useESModules": false
}
],
[
"module-resolver",
{
"root": "./src"
}
]
],
"ignore": ["**/*.test.js", "**/*.spec.js", "src/test/**"]
}
53 changes: 53 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"extends": ["eslint:recommended", "airbnb-base", "prettier"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"plugins": [
[
"module-resolver",
{
"root": ["./src"]
}
]
]
}
},
"env": { "es6": true, "node": true, "commonjs": true },
"rules": {
"global-require": "off",
"func-names": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"max-len": "off",
"no-continue": "warn",
"no-await-in-loop": "warn",
"template-curly-spacing": "off",
"indent": "off",
"linebreak-style": 0,
"no-console": "off",
"consistent-return": "off"
},
"settings": {
"import/resolver": {
"babel-module": {
"root": ["./src"]
},
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx"]
}
}
},
"overrides": [
{
"files": ["**/*.test.js", "**/*.spec.js", "src/test/*.js"],
"env": {
"jest": true
}
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: backend-coverage-report
path: coverage/
path: coverage/
55 changes: 55 additions & 0 deletions PR_DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Description
Fixes issue where the "Longest Open Issues" chart was limiting results to only 7 issues when multiple projects were selected, causing some issues to be hidden. Also fixes issue numbering consistency when multiple projects are selected.

Fixes #4301 (Phase 2 Bugs - Priority Medium)

## Related PRs (if any):
Related to Frontend PR: #4653
To test this backend PR, you need to checkout the corresponding frontend PR branch.

## Main changes explained:
- **Updated `bmIssueController.js`** - `getLongestOpenIssues` function:
- Removed `.slice(0, 7)` limit to return all issues from selected projects instead of just top 7
- Added `issueId` to response (MongoDB `_id` as string) for consistent issue identification
- Added `projectId` to response to enable per-project issue numbering
- Added `projectName` to response to distinguish issues across projects
- Updated query to select `_id` field along with `issueTitle` and `issueDate`
- Handle empty `issueTitle` arrays by returning `null` instead of `undefined`

## How to test:
1. Checkout branch `vamsidhar-fix/issue-chart-all-issues-visible`
2. Run `npm run build` to compile the changes
3. Restart the backend server
4. Ensure the frontend is running with the corresponding frontend PR branch
5. Navigate to BMDashboard → Issues → Longest Open Issues chart
6. **Test Scenario 1: Select only "Building 3"**
- Should show all Building 3 issues (e.g., "Paint Peeling in Conference Room", "Issue #1", "Issue #2", "Issue #3", "Issue #4")
- Verify all issues are displayed, not limited to 7
7. **Test Scenario 2: Select "Building 3" and "Building 1" together**
- Should show ALL issues from both projects (not limited to 7)
- Should include all Building 3 issues (Issue #1, #2, #3, #4) AND all Building 1 issues
- Verify no issues are missing compared to when selecting projects individually
- Check backend console logs - should see: `[getLongestOpenIssues] Total issues found: X, Returning: X issues` where X is the total count (should be more than 7 for multiple projects)
8. **Test Scenario 3: Select multiple projects with many issues**
- Verify all issues are displayed, sorted by duration (longest first)
- Check backend console logs to verify the count of issues being returned
- Verify the response includes `issueId`, `projectId`, and `projectName` fields for each issue

## Expected behavior:
- When selecting multiple projects, ALL issues from all selected projects should be visible
- Issues should be sorted by duration (longest open first)
- No limit on the number of issues displayed
- Each issue should have a unique `issueId` for consistent identification
- Response should include `projectId` and `projectName` for frontend processing

## Technical details:
- The API endpoint `/bm/issues/longest-open` now returns all matching issues instead of limiting to 7
- Response includes `issueId`, `projectId`, and `projectName` fields for frontend processing
- Issues with empty `issueTitle` arrays return `null` for `issueName` (frontend will generate names)
- Debug logging added to verify issue counts in console

## Note:
This PR only includes backend changes. The frontend PR (#4653) will handle:
- Using `issueId` for consistent issue numbering
- Per-project issue numbering to avoid conflicts
- Prefixing unnamed issues with project name when multiple projects are selected
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
useESModules: false,
},
],
['@babel/plugin-transform-logical-assignment-operators'], // <-- needed for ||= and ??=
['module-resolver', { root: './src' }],
],
ignore: ['**/*.test.js', '**/*.spec.js', 'src/test/**'],
Expand Down
Empty file added git
Empty file.
Loading
Loading