-
Notifications
You must be signed in to change notification settings - Fork 8
docker-setup-for-entity #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughAdds and reorganizes versioned documentation, Docker orchestration artifacts, OS-specific setup scripts (Ubuntu/macOS/Windows), a JSON config mapping, and environment files for entity-management v3.4.0; introduces docker-compose multi-service definitions and platform-specific setup/up/down scripts. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Operator as "Operator"
participant SetupScript as "Platform Setup Script"
participant Remote as "Remote Repo/URLs"
participant DockerCompose as "docker compose"
participant Zookeeper as "Zookeeper"
participant Kafka as "Kafka"
participant Mongo as "MongoDB"
participant Service as "entity_management"
Operator->>SetupScript: run setup script
SetupScript->>Remote: fetch docker-compose.yml, env, config, scripts
Remote-->>SetupScript: files returned
SetupScript->>SetupScript: make scripts executable / patch mac scripts
SetupScript->>DockerCompose: invoke `docker compose up`
DockerCompose->>Zookeeper: start zookeeper
DockerCompose->>Kafka: start kafka (depends_on zookeeper)
DockerCompose->>Mongo: start mongo
DockerCompose->>Service: start entity_management (depends_on mongo)
Service->>Mongo: connect using MONGODB_URL
DockerCompose-->>Operator: services started
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 14
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
README.md (1)
179-180: Local setup points MongoDB to Docker hostname.For the non‑Docker flow, use
localhostinstead ofmongo.✅ Suggested fix
-MONGODB_URL=mongodb://mongo:27017/elevate-entity-management +MONGODB_URL=mongodb://localhost:27017/elevate-entity-management
🤖 Fix all issues with AI agents
In `@README.md`:
- Around line 75-83: The fenced shell snippets in README.md are missing a
language identifier; update each triple-backtick fence around shell loops and
commands (e.g., the port-check loop shown) to use ```bash so markdownlint stops
flagging them and syntax highlighting works consistently—ensure you apply the
same change to all other code fences in the file that contain shell commands.
- Around line 85-88: The README.md currently downloads setup_project.sh from the
project-service repo; verify whether entity-management should depend on that
centralized script and update documentation accordingly: if the centralized
approach is intended, add a brief note in README.md explaining "why
entity-management relies on project-service's setup_project.sh" and document any
prerequisites or cross-service expectations; if not intended, change the curl
target to point to entity-management's own setup_project.sh (or add an
alternative local setup command) and update the README.md command and
explanation to reference the new entity-management script. Ensure references to
"setup_project.sh", "project-service", and "entity-management" are clear so
maintainers can locate the scripts.
In `@src/documentation/1.0.0/README.md`:
- Around line 7-12: The HTML <img> tags in the README (the image inside the <a
href="https://shikshalokam.org/elevate/"> block and the other image at lines
219-221) are missing alt attributes; add meaningful alt text to each <img> (for
example alt="Elevate logo" or a brief description relevant to the image) so the
<img> elements include alt="..." and satisfy markdownlint/accessibility
requirements.
- Around line 15-22: The README badges and links still point to the notification
service; update all occurrences referencing "notification" to the
entity-management equivalents: replace project identifiers like
ELEVATE-Project_notification in Sonar/coverage/vulnerabilities/duplicated_lines
badge URLs and the GitHub package.json badge filename query to the
entity-management repository (e.g., ELEVATE-Project_entity-management and
filename pointing to entity-management's package.json), and update the Docs/API
link targets (dev.elevate-apis.../notification/api-doc and any docs link
pointing at mentorEd/intro if it should target entity-management docs) so all
badges and documentation links reference the entity-management assets instead of
notification.
- Around line 161-162: The README currently sets MONGODB_URL to
"mongodb://mongo:27017/elevate-entity-management" which only works inside
Docker; update the MONGODB_URL example value to use "localhost" (e.g.,
"mongodb://localhost:27017/elevate-entity-management") so non‑Docker local
setups can resolve the host—modify the MONGODB_URL example in the README.md
accordingly.
- Around line 63-66: Update the broken raw GitHub URL in the "Local Dependencies
Steps" section of README.md: replace the current docker-compose.yml link (which
points to the repository root) with the correct path under
src/documentation/1.0.0/dockerFiles/docker-compose.yml so the link becomes
https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/main/src/documentation/1.0.0/dockerFiles/docker-compose.yml;
locate the link text in the README.md near the "Local Dependencies Steps" header
and update only the href to the corrected raw URL.
In `@src/documentation/3.4.0/dockerFiles/docker-compose.yml`:
- Around line 19-20: The env_file entry in docker-compose.yml currently points
to ./entity_management_env which is incorrect relative to this compose file;
update the env_file value (the env_file key in the compose service block) to
reference the actual env file location under the parent envs directory (i.e.,
change the path to point one level up into the envs folder) so Docker Compose
can resolve the file when run from this compose file's location.
In `@src/documentation/3.4.0/envs/entity_management_env`:
- Around line 4-5: The file contains hard-coded secrets (INTERNAL_ACCESS_TOKEN
and ACCESS_TOKEN_SECRET); remove the real values, replace them with
non-sensitive placeholders (e.g., REDACTED or <REQUIRED_VALUE>) and add or
update documentation describing the expected env keys and formats; ensure a
.env.example or similar is committed instead of real secrets, instruct the
author to rotate any exposed tokens and remove them from git history if they
were real.
- Around line 10-21: There are duplicate environment keys:
KAFKA_HEALTH_CHECK_TOPIC and KAFKA_COMMUNICATIONS_ON_OFF; remove the duplicate
entries and keep the correct intended value for each (ensure only one
KAFKA_HEALTH_CHECK_TOPIC and one KAFKA_COMMUNICATIONS_ON_OFF remain), normalize
the formatting (consistent no-spaces around '=') and verify the retained values
are the ones used by the service (update other config references if needed).
In `@src/documentation/3.4.0/setup/README.md`:
- Around line 7-12: The <img> tags in README.md are missing alt attributes which
breaks accessibility and markdownlint; update each <img> element (e.g., the
Elevate logo <img> in the provided diff and the other image at lines noted) to
include meaningful alt text (for example alt="Elevate logo") so every inline
image has an alt attribute describing the image content; ensure you add alt text
for all occurrences of <img> in this file (including the other instance
referenced) and keep the attribute value concise and descriptive.
- Around line 179-180: The README's example MONGODB_URL currently points to the
Docker hostname "mongo:27017", which will fail for a non-Docker local daemon;
update the MONGODB_URL example to use a localhost address (e.g., replace
"mongo:27017" with "localhost:27017" or "127.0.0.1:27017") and add a short note
near the MONGODB_URL env example indicating that the provided value is for local
non-Docker setups and should be changed to the Docker service hostname when
running in Docker.
- Around line 75-83: The fenced shell snippet in README.md lacks a language tag;
update the triple-backtick fence(s) around the shell snippet(s) (e.g., the for
loop checking ports) to use a language identifier such as bash (```bash) or
shell, and apply the same change to all other fenced code blocks in this file to
satisfy markdownlint and ensure proper syntax highlighting.
- Around line 15-22: The README badges and links reference the notification
service (e.g., URLs containing ELEVATE-Project/notification,
ELEVATE-Project_notification, and dev.elevate-apis.../notification/api-doc);
update each badge and API/docs link to point to the entity-management
equivalents (replace "notification" and "ELEVATE-Project_notification" with
"entity-management" and "ELEVATE-Project_entity-management" and update the docs
links to the entity-management paths such as
dev.elevate-apis.../entity-management/api-doc and
elevate-docs.../entity-management) so the README assets correctly reflect the
entity-management service.
- Around line 138-142: The README clone command currently references branch
"develop-2.5" which is mismatched for 3.4.0; update the git clone command (the
line containing git clone -b develop-2.5 --single-branch
"https://github.com/ELEVATE-Project/entity-management") to use the correct
branch for 3.4.0 (for example "pre-3.4-release-main") or the verified stable
branch name for 3.4.0 so the instructions and branch align.
🧹 Nitpick comments (1)
src/documentation/3.4.0/dockerFiles/docker-compose.yml (1)
18-18: Switch the command to use the image's default (node) instead of relying onnodemon.The Dockerfile installs
nodemonglobally, so the current command would likely work. However, usingnode app.jsis more predictable and aligns with the image's default CMD. For development workflows, use the npm scripts (npm run startornpm run dev) instead, which properly invokenodemonwith the correct environment variables.Recommended change
- command: ['nodemon', 'app.js'] + command: ['node', 'app.js']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 8
🤖 Fix all issues with AI agents
In `@README.md`:
- Around line 90-91: The README note is inaccurate: update the sentence that
currently reads "The script will download all the essential files and launch the
services in Docker" to accurately reflect the curl command behavior (it only
downloads docker-compose.yml) and add a follow-up instruction to start services
(e.g., run "docker compose up -d" or "docker-compose up -d"); reference the
exact note text and the curl download step so the doc clearly states what is
downloaded and the explicit command the user must run to launch the Docker
services.
- Around line 85-105: The README's download step only fetches docker-compose.yml
but later references scripts and env files that won't exist; update the
instructions to download the missing files (entity_management_env,
docker-compose-up.sh, docker-compose-down.sh) from the dockerized paths shown in
the suggested fix, mark the scripts executable, and/or recommend running
entity_setup.sh which automates fetching all required files; specifically
mention docker-compose.yml, entity_management_env, docker-compose-up.sh,
docker-compose-down.sh and entity_setup.sh so maintainers can locate and verify
the downloads.
In `@src/documentation/3.4.0/dockerized/dockerFiles/docker-compose.yml`:
- Around line 10-13: Re-enable persistent storage for MongoDB by uncommenting or
restoring the volume mount (the commented "volumes:" block and "-
mongo-data:/data/db") so container restarts/removals do not lose data, and
remove or change the "logging: driver: none" entry in docker-compose.yml (or add
a comment/doc note) so container logs are preserved or the suppression is
explicitly documented for development; update the docker-compose.yml near the
MongoDB service definitions to reflect these changes and add a short comment
explaining any intentional logging suppression.
- Around line 14-18: Update the docker-compose service "entity_management" to
use the matching 3.4 image tag and replace the development starter: change the
image value from shikshalokamqa/elevate-entity-management:3.3.13.1 to
shikshalokamqa/elevate-entity-management:3.4.0 (or :3.4) and remove the nodemon
command entry by replacing the command array ['nodemon', 'app.js'] with a
production runtime invocation using node (e.g., ['node', 'app.js']) so the
documentation reflects the correct release and a production-appropriate start
command.
In `@src/documentation/3.4.0/dockerized/script/ubuntu/entity_setup.sh`:
- Around line 13-17: The curl invocation in entity_setup.sh is malformed: the
line continuation backslash after curl -L makes the next line part of the same
command but the following log call then breaks the shell syntax. Fix by
completing the curl command (remove the dangling backslash or place the URL on
the same line) and ensure -O is followed by the filename or use -o <filename>;
update the block around the log calls and the curl invocation so the sequence
is: log "Downloading...", curl -L -O
https://raw.githubusercontent.com/.../interface_env, then log "Environment files
downloaded."; verify the existing log function remains unchanged.
- Around line 32-36: The two npm install lines in entity_setup.sh (installing
mongodb and mongoose) should be removed from the Dockerized setup script because
dependencies must be installed in the application image via the Dockerfile;
instead, either move these installs into the app Dockerfile or, if they are
truly required by a local seeding script, wrap them in a guarded block that
checks for npm and adds logging/error handling around the install commands
(i.e., check npm --version, log start/finish and on failure output the npm error
and exit non-zero). Ensure you update or document where the dependencies are
installed (Dockerfile or a dedicated local-setup script) and modify
entity_setup.sh accordingly.
In `@src/documentation/3.4.0/setup/docker/ubuntu/README.md`:
- Line 93: There is an orphaned closing HTML tag "</details>" in the README that
breaks Markdown rendering; either remove this stray "</details>" line or add the
matching opening "<details><summary>...</summary>" block and the collapsible
content it should close so the tags are balanced (locate the orphan by searching
for the literal "</details>" in the README.md).
- Around line 72-73: The curl command in README.md downloads setup_project.sh
from the wrong repo; update the URL string in the curl invocation to point to
the entity-management repository (replace "project-service" with
"entity-management") while keeping the same branch/ref and path (the
refs/heads/setupGuide-3.4/documentation/3.4.0/dockerized/scripts/stand-alone/ubuntu/setup_project.sh
portion) so the script fetched by the curl command is the correct
setup_project.sh for entity-management.
🧹 Nitpick comments (5)
src/documentation/3.4.0/dockerized/script/ubuntu/docker-compose-up.sh (1)
1-10: Consider adding error handling and detached mode option.The script works but could be more robust:
- No validation that
docker-compose.ymlorentity_management_envexist before running- Running without
-dwill block the terminal (may be intentional for logs visibility)♻️ Suggested improvements
#!/bin/bash # Get the directory of the shell script SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +# Verify required files exist +if [[ ! -f "$SCRIPT_DIR/docker-compose.yml" ]]; then + echo "Error: docker-compose.yml not found in $SCRIPT_DIR" + exit 1 +fi + +if [[ ! -f "$SCRIPT_DIR/entity_management_env" ]]; then + echo "Error: entity_management_env not found in $SCRIPT_DIR" + exit 1 +fi + # Set environment variables export entity_management_env="$SCRIPT_DIR/entity_management_env" # Run docker-compose docker compose -f "$SCRIPT_DIR/docker-compose.yml" upsrc/documentation/3.4.0/dockerized/dockerFiles/docker-compose.yml (1)
1-1:versionkey is deprecated in Docker Compose.The
versionkey is obsolete in modern Docker Compose and can be removed.♻️ Suggested fix
-version: '3' services:src/documentation/3.4.0/dockerized/script/ubuntu/entity_setup.sh (2)
1-6: Addset -eand improve error handling.The script lacks fail-fast behavior. If any
curlornpmcommand fails, the script continues, potentially leaving the environment in an inconsistent state.♻️ Proposed improvement
#!/bin/bash +set -e # Exit on first error # Logging function log() { echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" >> setup_log.txt }
8-45: Fix inconsistent step numbering.Step comments jump from 1, 2 to 6, 7, then 13. Either remove step numbers or renumber sequentially for maintainability.
src/documentation/3.4.0/dockerized/envs/entity_management_env (1)
1-23: Normalize spacing around=for consistency.The file mixes styles: some lines have spaces around
=(e.g.,APPLICATION_PORT = 5001) while others don't (e.g.,MONGODB_URL=mongodb://...). Standardize to no spaces for proper parsing by some tools.♻️ Suggested normalization
-APPLICATION_PORT = 5001 -APPLICATION_ENV ="development" +APPLICATION_PORT=5001 +APPLICATION_ENV=development APPLICATION_BASE_URL='/entity-management/' ... -AUTH_METHOD = native -USER_SERVICE_URL = http://interface:3569 +AUTH_METHOD=native +USER_SERVICE_URL=http://interface:3569
src/documentation/3.4.0/dockerized/script/ubuntu/entity_setup.sh
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/documentation/3.4.0/setup/docker/ubuntu/README.md`:
- Line 119: Replace the incorrect project name in the README by changing the
phrase "Mentoring's development" to "Entity Management's development" in the
line that currently reads "Several open source dependencies that have aided
Mentoring's development:" so the line correctly reads "Several open source
dependencies that have aided Entity Management's development:".
🧹 Nitpick comments (1)
src/documentation/3.4.0/dockerized/dockerFiles/docker-compose.yml (1)
31-33: Unusedlogsvolume defined.The
logsvolume is declared but never mounted to any service. Either remove it or mount it to the appropriate service for log persistence.♻️ Suggested fix
volumes: mongo-data: - logs:Or, if logs should be persisted for entity_management:
entity_management: ... volumes: - ./config.json:/var/src/config.json + - logs:/var/src/logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🤖 Fix all issues with AI agents
In `@src/documentation/3.4.0/dockerized/script/mac-os/entity_setup.sh`:
- Around line 27-29: The curl invocations in entity_setup.sh (e.g., the block
with log "Downloading Docker Compose file..." that calls curl -OJL) should
include the --fail flag (and -S for sensible error output) so HTTP errors cause
non‑zero exit and the script stops; update every curl call in the script (the
Docker Compose download and the other curl blocks referenced) to use curl --fail
-S -OJL (or equivalent flags used elsewhere) so failed downloads are detected
immediately by set -e.
In `@src/documentation/3.4.0/setup/docker/mac-os/README.md`:
- Around line 41-43: Replace the incorrect OS requirement line "Operating
System: Ubuntu 22" in the README section with a macOS-appropriate entry (e.g.,
"Operating System: macOS 12+ (Monterey/Ventura)") so the macOS Docker setup page
reflects the correct platform; update the surrounding bullet list (the lines
containing "Node.js: v20" and "mongoDb: v4") only if necessary for
macOS-specific notes, and ensure the exact phrase "Operating System: Ubuntu 22"
is removed or replaced to avoid confusion.
- Around line 105-107: Replace ambiguous link text by using descriptive labels:
change
"[repo](https://github.com/ELEVATE-Project/observation-survey-projects-pwa)" to
something like "frontend/mobile application repository" (or "Observation Survey
PWA repository") and change "project-service
[here](https://elevate-docs.shikshalokam.org/.project/intro)" to
"project-service documentation" (or "project-service implementation docs");
update the markdown in README.md so the link URLs remain the same but the
visible text is descriptive to satisfy MD059.
In `@src/documentation/3.4.0/setup/docker/ubuntu/README.md`:
- Around line 105-107: Replace non-descriptive link text "repo" and "here" with
descriptive link labels: change the link pointing to
https://github.com/ELEVATE-Project/observation-survey-projects-pwa to something
like "frontend/mobile application repository" (or "Observation Survey PWA
repository") and change the link pointing to
https://elevate-docs.shikshalokam.org/.project/intro to "project-service
implementation documentation" (or "project-service docs"); update the markdown
in README.md so the link text clearly describes each destination instead of
using "repo" or "here".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🤖 Fix all issues with AI agents
In `@src/documentation/3.4.0/setup/docker/windows/README.md`:
- Around line 39-45: Update the README's System Requirements and section header
to reference Windows instead of Ubuntu: change the "Operating System: Ubuntu 22"
entry under the "System Requirements" block to the correct Windows version
(e.g., "Operating System: Windows 10/11") and rename the "## Dockerized Service
With Local Dependencies - Ubuntu" heading to "## Dockerized Service With Local
Dependencies - Windows" so the file's OS references match the Windows setup
guide.
- Around line 61-69: Replace the Linux bash port-check loop with a Windows
PowerShell equivalent: remove the for/if/sudo/lsof block and implement a
PowerShell loop that iterates over the ports array (e.g., $ports = @(5001,
27017)), uses Get-NetTCPConnection -LocalPort $port -ErrorAction
SilentlyContinue to detect listeners, and prints "Port $port is IN USE" or "Port
$port is available" via Write-Host inside the foreach ($port in $ports) { ... }
block so the snippet is Windows-native.
- Line 106: Remove the orphaned closing HTML tag by deleting the stray
"</details>" entry in the README content (the unmatched "</details>" tag is the
issue); ensure there is no stray closing tag left and that any intended
collapsible section uses matching "<details>...</details>" pairs if needed.
- Around line 15-23: The badges at the top of the README reference the wrong
repository; update all occurrences of "ELEVATE-Project/notification" to
"ELEVATE-Project/entity-management" (including CircleCI and SonarCloud badge
URLs and the GitHub package.json version badge query parameter filename) and
adjust the package.json filename parameter if needed (the comment mentioned
updating the entry at line 22) so all badge links correctly point to the
entity-management project.
🧹 Nitpick comments (2)
src/documentation/3.4.0/setup/docker/windows/README.md (2)
8-12: Add alt text to images for accessibility.Per static analysis, images should have alternate text for accessibility compliance.
♻️ Proposed fix
<img src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" height="140" width="300" + alt="ELEVATE Project Logo" />
61-102: Add language specifiers to fenced code blocks.Per static analysis (MD040), fenced code blocks should have a language specified for proper syntax highlighting. Use
powershellorbatchfor Windows commands, andshellfor curl commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/documentation/3.4.0/setup/docker/windows/README.md`:
- Line 27: The CircleCI badge URL in the README has a typo and wrong project
name; update the badge markdown string by replacing "buil-and-test" with
"build-and-test" and change the repository segment "notification" to
"entity-management" so both the badge image URL and the link target point to the
correct workflow and project (edit the badge/link reference in the README line
containing the CircleCI markdown).
🧹 Nitpick comments (3)
src/documentation/3.4.0/setup/docker/windows/README.md (3)
53-53: Use Windows-native command syntax.The example command uses Unix/Linux syntax (
&&). While this works in PowerShell, it's clearer to provide Windows cmd.exe syntax or explicitly indicate PowerShell usage for better Windows user experience.💡 Suggested alternatives
For cmd.exe:
mkdir entity-management & cd entity-managementOr explicitly label as PowerShell:
mkdir entity-management && cd entity-management/
101-103: Clarify how to execute the batch file.The instruction shows just the filename
docker-compose-up.batwithout clear execution syntax. Windows users may be unclear whether to run it from cmd, PowerShell, or double-click.💡 Suggested improvement
-``` -docker-compose-up.bat -``` +```cmd +docker-compose-up.bat +``` + +Or simply double-click the `docker-compose-up.bat` file in File Explorer.
73-97: Add language identifiers to code blocks for better syntax highlighting.Multiple code blocks are missing language identifiers, which reduces readability and prevents proper syntax highlighting.
💡 Suggested improvement
Add
cmdorpowershellidentifier to the code blocks:-``` +```cmd curl -OJL https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/dockerSetup/src/documentation/3.4.0/dockerized/dockerFiles/docker-compose.ymlApply similar changes to code blocks at lines 79, 85, 89, and 95. </details> </blockquote></details> </blockquote></details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🤖 Fix all issues with AI agents
In `@README.md`:
- Line 40: The markdown heading "I. Docker Setup (Recommended)" is currently
using `####` under an `##` section, causing a heading-level jump; update that
heading to `### I. Docker Setup (Recommended)` (or insert an intermediate `###`
section above) so the heading level increments properly and satisfies
markdownlint rules.
- Around line 50-51: The macOS link under "Native Setup (PM2 Managed Services)"
is pointing to the Docker guide; update the "[Setup guide for macOS]" link to
the native macOS path instead of the docker path (replace the URL containing
"setup/docker/stand-alone/mac-os/README.md" with the corresponding native path,
e.g. "setup/native/stand-alone/mac-os/README.md"), and verify the link text
remains "[Setup guide for macOS]" and this change is made in the README entry
for Native Setup.
- Around line 106-108: The contributors image in README.md (the <img> element
rendering contrib.rocks) is missing alt text; add a concise, descriptive alt
attribute to that <img> tag (for example alt="Contributors to
ELEVATE-Project/entity-management") so the <img> element provides accessible
text for screen readers and fixes the accessibility linting error.
- Around line 50-52: Replace the placeholder Windows link in README.md (the
markdown list item for "Setup guide for Windows") with the actual 3.4.0 native
Windows guide URL; specifically update the line shown in the diff to point to
the real guide (e.g. replace "link/to/standalone/native/windows/README" with
"https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/native/stand-alone/windows/README.md")
so the Windows setup entry no longer 404s.
🧹 Nitpick comments (1)
README.md (1)
112-114: Hyphenate compound adjective (“Open-Source”).
Line 112 reads “Open Source Dependencies”; consider “Open-Source Dependencies” for grammar consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@README.md`:
- Line 13: Update the Shields badge URL in README.md so it points to the
entity-management package.json instead of mentoring: replace the "mentoring"
segment in the badge URL (the repository/service identifier used in the
img.shields.io link) with "entity-management" so the filename query
(src%2Fpackage.json) now references the correct service.
In `@src/documentation/3.4.0/setup/native/mac-os/README.md`:
- Around line 144-151: Replace the Linux-specific systemctl invocations found as
the exact strings "sudo systemctl start mongod" and "sudo systemctl status
mongod" with macOS Homebrew service commands: use "brew services start
mongodb-community" to start MongoDB and use "brew services list | grep mongodb"
(or an equivalent brew services status check) to verify it's running; update the
README lines containing those systemctl commands accordingly so macOS users see
the correct brew-based instructions.
| [](https://elevate-docs.shikshalokam.org/mentorEd/intro) | ||
| [](https://dev.elevate-apis.shikshalokam.org/notification/api-doc) | ||
|  | ||
|  |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Badge references wrong service (mentoring instead of entity-management).
Line 13 references the mentoring service in the package.json version badge URL, which is incorrect for this entity-management README.
🔧 Suggested fix
-
+📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
|  | |
|  |
🤖 Prompt for AI Agents
In `@README.md` at line 13, Update the Shields badge URL in README.md so it points
to the entity-management package.json instead of mentoring: replace the
"mentoring" segment in the badge URL (the repository/service identifier used in
the img.shields.io link) with "entity-management" so the filename query
(src%2Fpackage.json) now references the correct service.
| ```bash | ||
| sudo systemctl start mongod | ||
| ``` | ||
|
|
||
| **Verify MongoDB is running** | ||
|
|
||
| ```bash | ||
| sudo systemctl status mongod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
systemctl commands won't work on macOS.
Lines 144-145 and 151 use systemctl, which is a Linux systemd command not available on macOS. For macOS, use brew services instead.
🍎 Suggested fix for macOS
**Start MongoDB Service**
```bash
-sudo systemctl start mongod
+brew services start mongodb-communityVerify MongoDB is running
-sudo systemctl status mongod
+brew services list | grep mongodb🧰 Tools
🪛 markdownlint-cli2 (0.20.0)
148-148: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/mac-os/README.md` around lines 144 -
151, Replace the Linux-specific systemctl invocations found as the exact strings
"sudo systemctl start mongod" and "sudo systemctl status mongod" with macOS
Homebrew service commands: use "brew services start mongodb-community" to start
MongoDB and use "brew services list | grep mongodb" (or an equivalent brew
services status check) to verify it's running; update the README lines
containing those systemctl commands accordingly so macOS users see the correct
brew-based instructions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 13
Note
Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/documentation/3.4.0/setup/docker/ubuntu/README.md (1)
137-137: DeduplicateKAFKA_HEALTH_CHECK_TOPICin the example.It appears twice with different values, which is confusing.
✅ Suggested cleanup
-#kafka health check topic -KAFKA_HEALTH_CHECK_TOPIC='KAFKA_HEALTH_CHECK_TOPIC' ... -KAFKA_HEALTH_CHECK_TOPIC = entity-health-check-topic-check +KAFKA_HEALTH_CHECK_TOPIC=entity-health-check-topic-checkAlso applies to: 142-142
🤖 Fix all issues with AI agents
In `@README.md`:
- Around line 42-44: The three setup links labeled "Setup guide for Linux",
"Setup guide for macOS", and "Setup guide for Windows" point to the
project-service repo; update their URLs to point to the corresponding
entity-management documentation (or convert them to relative paths under the new
3.4.0/entity-management docs) so they resolve to the local repo’s README files;
ensure you update the same pattern used on the other lines mentioned (the
duplicate links around the later block) so all references consistently target
entity-management.
In `@src/documentation/1.0.0/dockerFiles/docker-compose.yml`:
- Around line 5-6: The published ports for unauthenticated services (e.g., the
ZooKeeper mapping '2181:2181' and the corresponding Kafka and Mongo mappings
referenced at the other locations) are exposed on all interfaces; tighten them
by either binding the host side to localhost (e.g., '127.0.0.1:2181:2181') or
removing the host port mapping entirely when not needed, and apply the same
change to the other exposed mappings noted in the comment (lines referencing
Kafka and Mongo) so these services are not reachable from external interfaces.
- Around line 52-53: The env_file path in docker-compose.yml (the env_file key)
is currently relative and may resolve incorrectly; update it to an explicit or
parameterized path (for example use an absolute or compose-aware variable like
${COMPOSE_PROJECT_DIRECTORY:-${PWD}}/src/.env or ./src/.env) or add
documentation instructing users to run docker-compose with --project-directory
so the existing src/.env resolves; modify the env_file value accordingly in
docker-compose.yml and ensure the README/doc explains the chosen approach.
In `@src/documentation/3.4.0/setup/docker/mac-os/README.md`:
- Around line 15-22: Badges and docs links in the README currently point to the
"notification" service (e.g., CircleCI redirect gh/ELEVATE-Project/notification,
SonarCloud project params like project=ELEVATE-Project_notification,
dev.elevate-apis.shikshalokam.org/notification/api-doc, and the GitHub
package-json badge referencing ELEVATE-Project/notification); update all
occurrences of "notification" in those badge URLs, SonarCloud project IDs,
CircleCI redirect paths, API-doc links, and the GitHub package-json badge repo
parameter to the correct repository/service name used by this project and adjust
alt text labels accordingly so each badge and link points to the proper target.
In `@src/documentation/3.4.0/setup/docker/ubuntu/README.md`:
- Around line 108-112: The .env example in README.md contains real-looking
tokens; replace any hardcoded secrets with generic placeholders (e.g.,
YOUR_API_KEY, YOUR_GITHUB_TOKEN) and remove or redact any actual tokens or keys
shown in the file referenced by the .env example and near the Team section
image; update the README.md .env example and the other occurrence noted (line
~132) to use clearly labeled placeholders and add a short note to rotate secrets
if they were ever real.
In `@src/documentation/3.4.0/setup/native/mac-os/README.md`:
- Around line 106-109: Replace the real-looking secrets in the README example:
remove the actual token values for INTERNAL_ACCESS_TOKEN and ACCESS_TOKEN_SECRET
and replace them with clear placeholders (e.g.
INTERNAL_ACCESS_TOKEN=YOUR_INTERNAL_ACCESS_TOKEN and
ACCESS_TOKEN_SECRET=YOUR_ACCESS_TOKEN_SECRET); ensure any other occurrences of
those symbols in the file are similarly redacted and add a short note telling
users to rotate any exposed secrets if these were real.
- Line 135: The README shows duplicate environment variable entries for
KAFKA_HEALTH_CHECK_TOPIC with different values; remove the redundant line and
keep a single, consistent declaration for KAFKA_HEALTH_CHECK_TOPIC (choose the
intended value used elsewhere in the docs or codebase) so the example only
contains one KAFKA_HEALTH_CHECK_TOPIC entry; update both occurrences around the
example to the same value to avoid confusion.
- Around line 15-22: In README.md update all badges and docs links that
incorrectly reference the "notification" repo/service: replace occurrences like
"ELEVATE-Project_notification", badge labels pointing to notification, and any
docs/API links that include "notification" with the correct repository/service
identifier for this project; specifically edit the badge URLs and link targets
in the top-of-file block (the CircleCI, SonarCloud badges, GitHub package.json
badge and the Docs/API links) so they point to the intended repo/service name
instead of "notification".
In `@src/documentation/3.4.0/setup/native/ubuntu/README.md`:
- Around line 108-112: The README contains hardcoded secrets
(INTERNAL_ACCESS_TOKEN and ACCESS_TOKEN_SECRET); replace their values in the
.env example with non-sensitive placeholders (e.g.,
INTERNAL_ACCESS_TOKEN=YOUR_INTERNAL_ACCESS_TOKEN and
ACCESS_TOKEN_SECRET=YOUR_ACCESS_TOKEN_SECRET) and add a short note to rotate any
real secrets if they were used; make the same replacement for the other
occurrence referenced (line ~132) so no real tokens remain in the docs.
- Line 137: The README contains a duplicate environment variable
KAFKA_HEALTH_CHECK_TOPIC with differing values; keep a single, consistent
declaration by removing the redundant entry or aligning both to the intended
topic name, updating the KAFKA_HEALTH_CHECK_TOPIC instance(s) in the README so
only one definition exists (or both match) to avoid conflicting examples in the
native Ubuntu setup docs.
- Around line 15-22: The README badges and links currently point to the
`notification` repository/service (e.g., badge URLs containing
ELEVATE-Project/notification, sonarcloud project=ELEVATE-Project_notification,
GitHub package.json badge filename=src%2Fpackage.json and the docs/API links) —
update all badge URLs and link targets to the correct repository/service
identifiers for this project (replace occurrences of "notification" and
"ELEVATE-Project_notification" in the shield/sonarcloud/GitHub package badge
URLs and the docs/API links), ensuring the visible link text remains appropriate
and the package.json badge points to the correct subfolder package if
applicable.
In `@src/documentation/3.4.0/setup/native/windows/README.md`:
- Around line 94-149: Replace any real-looking secret values in the sample .env
(e.g., INTERNAL_ACCESS_TOKEN, ACCESS_TOKEN_SECRET, ADMIN_ACCESS_TOKEN,
ADMIN_TOKEN_HEADER_NAME) with clearly named placeholders (like
INTERNAL_ACCESS_TOKEN=REPLACE_WITH_SECURE_TOKEN) and add a brief comment
instructing users to generate and store real secrets securely (e.g., use a
secrets manager or strong random generator); ensure no token-like strings remain
in the file and keep non-secret config values unchanged.
- Around line 134-144: The file defines KAFKA_HEALTH_CHECK_TOPIC twice and uses
a Docker host for KAFKA_URL which won’t resolve on native Windows; remove the
duplicate KAFKA_HEALTH_CHECK_TOPIC entry so there is a single canonical
definition (keep the intended value e.g., entity-health-check-topic-check) and
change KAFKA_URL from kafka:9092 to localhost:9092 so the non-Docker local
dependency resolves correctly; update only the constants
KAFKA_HEALTH_CHECK_TOPIC and KAFKA_URL in the README to reflect these fixes.
🟡 Minor comments (14)
src/documentation/3.4.0/setup/docker/mac-os/README.md-8-12 (1)
8-12: Add alt text to images (accessibility).The inline images don’t include
alttext.✅ Suggested fix
-<img +<img alt="Elevate logo" src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" height="140" width="300" /> ... - <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" /> + <img alt="Contributors" src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" />Also applies to: 111-113
src/documentation/3.4.0/setup/docker/windows/README.md-8-12 (1)
8-12: Add alt text to images (accessibility).The inline images don’t include
alttext.✅ Suggested fix
-<img +<img alt="Elevate logo" src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" height="140" width="300" /> ... - <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" /> + <img alt="Contributors" src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" />Also applies to: 123-124
src/documentation/3.4.0/setup/native/ubuntu/README.md-210-210 (1)
210-210: Fix the project name in OSS section.This README is for Entity Management, not Mentoring.
🔧 Suggested fix
-Several open source dependencies that have aided Mentoring's development: +Several open source dependencies that have aided Entity Management's development:src/documentation/3.4.0/setup/native/mac-os/README.md-208-208 (1)
208-208: Fix the project name in OSS section.This README is for Entity Management, not Mentoring.
🔧 Suggested fix
-Several open source dependencies that have aided Mentoring's development: +Several open source dependencies that have aided Entity Management's development:src/documentation/3.4.0/setup/native/ubuntu/README.md-196-198 (1)
196-198: Use descriptive link text.“repo” and “here” don’t describe the destination.
✅ Suggested fix
-The frontend/mobile application [repo](https://github.com/ELEVATE-Project/observation-survey-projects-pwa). +The frontend/mobile application [Observation Survey Projects PWA repository](https://github.com/ELEVATE-Project/observation-survey-projects-pwa). -You can learn more about the full implementation of project-service [here](https://elevate-docs.shikshalokam.org/.project/intro) . +You can learn more about the full implementation of project-service in the [Project service documentation](https://elevate-docs.shikshalokam.org/.project/intro) .src/documentation/3.4.0/setup/native/mac-os/README.md-194-196 (1)
194-196: Use descriptive link text.“repo” and “here” don’t describe the destination.
✅ Suggested fix
-The frontend/mobile application [repo](https://github.com/ELEVATE-Project/observation-survey-projects-pwa). +The frontend/mobile application [Observation Survey Projects PWA repository](https://github.com/ELEVATE-Project/observation-survey-projects-pwa). -You can learn more about the full implementation of project-service [here](https://elevate-docs.shikshalokam.org/.project/intro) . +You can learn more about the full implementation of project-service in the [Project service documentation](https://elevate-docs.shikshalokam.org/.project/intro) .src/documentation/3.4.0/setup/docker/mac-os/README.md-27-27 (1)
27-27: Fix CircleCI insights badge repo/workflow typo.It points to
notificationand usesbuil-and-test.🔧 Suggested fix
-[](https://app.circleci.com/insights/github/ELEVATE-Project/notification/workflows/buil-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true) +[](https://app.circleci.com/insights/github/ELEVATE-Project/entity-management/workflows/build-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true)src/documentation/3.4.0/setup/native/ubuntu/README.md-184-184 (1)
184-184: Remove the stray</details>tag.There’s no matching opening
<details>here.🧹 Suggested fix
-</details>src/documentation/3.4.0/setup/docker/ubuntu/README.md-27-27 (1)
27-27: Fix CircleCI insights badge repo/workflow typo.It points to
notificationand usesbuil-and-test.🔧 Suggested fix
-[](https://app.circleci.com/insights/github/ELEVATE-Project/notification/workflows/buil-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true) +[](https://app.circleci.com/insights/github/ELEVATE-Project/entity-management/workflows/build-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true)src/documentation/3.4.0/setup/docker/mac-os/README.md-93-93 (1)
93-93: Remove the stray</details>tag.There’s no matching opening
<details>in this section.🧹 Suggested fix
-</details>src/documentation/3.4.0/setup/native/mac-os/README.md-182-182 (1)
182-182: Remove the stray</details>tag.There’s no matching opening
<details>here.🧹 Suggested fix
-</details>src/documentation/3.4.0/setup/native/ubuntu/README.md-27-27 (1)
27-27: Fix CircleCI insights badge repo/workflow typo.It points to
notificationand usesbuil-and-test.🔧 Suggested fix
-[](https://app.circleci.com/insights/github/ELEVATE-Project/notification/workflows/buil-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true) +[](https://app.circleci.com/insights/github/ELEVATE-Project/entity-management/workflows/build-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true)src/documentation/3.4.0/setup/native/mac-os/README.md-27-27 (1)
27-27: Fix CircleCI insights badge repo/workflow typo.It points to
notificationand usesbuil-and-test.🔧 Suggested fix
-[](https://app.circleci.com/insights/github/ELEVATE-Project/notification/workflows/buil-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true) +[](https://app.circleci.com/insights/github/ELEVATE-Project/entity-management/workflows/build-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true)src/documentation/3.4.0/setup/native/windows/README.md-15-22 (1)
15-22: Badges point to the wrong service repo.These badges reference
ELEVATE-Project/notification, which is incorrect for entity-management. This misleads users and breaks relevance.✅ Suggested fix
-[](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/notification/tree/master) -[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) -[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) -[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) +[](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/entity-management/tree/master) +[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management) +[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management) +[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management) [](https://prettier.io) [](https://elevate-docs.shikshalokam.org/mentorEd/intro) -[](https://dev.elevate-apis.shikshalokam.org/notification/api-doc) - +[](https://dev.elevate-apis.shikshalokam.org/entity-management/api-doc) +
🧹 Nitpick comments (2)
src/documentation/3.4.0/setup/native/windows/README.md (2)
7-12: Add alt text to the logo image for accessibility.The
<img>tag lacks analtattribute, which fails accessibility linting.🔧 Suggested fix
<img src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" height="140" width="300" + alt="ELEVATE logo" />
60-66: Prefer headings over bold text for section titles.Markdownlint flags these as emphasis-used-as-heading; converting to
###keeps structure consistent and improves navigation.♻️ Suggested fix
-**Run the following command** +### Run the following command ... -**Start MongoDB Service** +### Start MongoDB Service ... -**Verify MongoDB is running** +### Verify MongoDB is runningAlso applies to: 155-165
| - [Setup guide for Linux](https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/docker/stand-alone/ubuntu/README.md) | ||
| - [Setup guide for macOS](https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/docker/stand-alone/mac-os/README.md) | ||
| - [Setup guide for Windows](https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/docker/stand-alone/windows/README.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setup links point to project-service, not entity-management.
These URLs appear to reference the project-service repo even though this PR adds 3.4.0 docs under entity-management. If the docs are intended to be local to this repo, update the links accordingly.
🔧 Example fix (entity-management repo)
-- [Setup guide for Linux](https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/docker/stand-alone/ubuntu/README.md)
-- [Setup guide for macOS](https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/docker/stand-alone/mac-os/README.md)
-- [Setup guide for Windows](https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/docker/stand-alone/windows/README.md)
+- [Setup guide for Linux](https://github.com/ELEVATE-Project/entity-management/blob/main/src/documentation/3.4.0/setup/docker/stand-alone/ubuntu/README.md)
+- [Setup guide for macOS](https://github.com/ELEVATE-Project/entity-management/blob/main/src/documentation/3.4.0/setup/docker/stand-alone/mac-os/README.md)
+- [Setup guide for Windows](https://github.com/ELEVATE-Project/entity-management/blob/main/src/documentation/3.4.0/setup/docker/stand-alone/windows/README.md)
...
-- [Setup guide for Linux](https://github.com/ELEVATE-Project/project-service/blob/main/documentation/3.4.0/setup/native/stand-alone/ubuntu/README.md)
+- [Setup guide for Linux](https://github.com/ELEVATE-Project/entity-management/blob/main/src/documentation/3.4.0/setup/native/stand-alone/ubuntu/README.md)Also applies to: 50-51
🤖 Prompt for AI Agents
In `@README.md` around lines 42 - 44, The three setup links labeled "Setup guide
for Linux", "Setup guide for macOS", and "Setup guide for Windows" point to the
project-service repo; update their URLs to point to the corresponding
entity-management documentation (or convert them to relative paths under the new
3.4.0/entity-management docs) so they resolve to the local repo’s README files;
ensure you update the same pattern used on the other lines mentioned (the
duplicate links around the later block) so all references consistently target
entity-management.
| env_file: | ||
| - src/.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix env_file path resolution.
env_file: src/.env is resolved relative to the compose project directory (this file’s folder by default), so it likely points to a non-existent path. Make the path explicit or document --project-directory usage.
🛠️ Suggested fix (parameterize for flexibility)
- env_file:
- - src/.env
+ env_file:
+ - ${ENV_FILE:-../../../../src/.env}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| env_file: | |
| - src/.env | |
| env_file: | |
| - ${ENV_FILE:-../../../../src/.env} |
🤖 Prompt for AI Agents
In `@src/documentation/1.0.0/dockerFiles/docker-compose.yml` around lines 52 - 53,
The env_file path in docker-compose.yml (the env_file key) is currently relative
and may resolve incorrectly; update it to an explicit or parameterized path (for
example use an absolute or compose-aware variable like
${COMPOSE_PROJECT_DIRECTORY:-${PWD}}/src/.env or ./src/.env) or add
documentation instructing users to run docker-compose with --project-directory
so the existing src/.env resolves; modify the env_file value accordingly in
docker-compose.yml and ensure the README/doc explains the chosen approach.
| [](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/notification/tree/master) | ||
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | ||
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | ||
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | ||
| [](https://prettier.io) | ||
| [](https://elevate-docs.shikshalokam.org/mentorEd/intro) | ||
| [](https://dev.elevate-apis.shikshalokam.org/notification/api-doc) | ||
|  |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Badges/docs link to the wrong repository/service.
They still reference notification.
🔧 Suggested fix
-[](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/notification/tree/master)
-[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification)
-[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification)
-[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification)
+[](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/entity-management/tree/master)
+[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management)
+[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management)
+[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management)
...
-[](https://dev.elevate-apis.shikshalokam.org/notification/api-doc)
-
+[](https://dev.elevate-apis.shikshalokam.org/entity-management/api-doc)
+🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/docker/mac-os/README.md` around lines 15 - 22,
Badges and docs links in the README currently point to the "notification"
service (e.g., CircleCI redirect gh/ELEVATE-Project/notification, SonarCloud
project params like project=ELEVATE-Project_notification,
dev.elevate-apis.shikshalokam.org/notification/api-doc, and the GitHub
package-json badge referencing ELEVATE-Project/notification); update all
occurrences of "notification" in those badge URLs, SonarCloud project IDs,
CircleCI redirect paths, API-doc links, and the GitHub package-json badge repo
parameter to the correct repository/service name used by this project and adjust
alt text labels accordingly so each badge and link points to the proper target.
|
|
||
| # Team | ||
|
|
||
| <a href="https://github.com/ELEVATE-Project/entity-management/graphs/contributors"> | ||
| <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove secrets from the .env example.
The doc includes real-looking tokens; use placeholders and rotate if these are real.
🛡️ Suggested redaction
-INTERNAL_ACCESS_TOKEN =xahusub12yexlashsbxAXADHBlaj
-ACCESS_TOKEN_SECRET=bsj82AHBxahusub12yexlashsbxAXADHBlaj
+INTERNAL_ACCESS_TOKEN=<REPLACE_ME>
+ACCESS_TOKEN_SECRET=<REPLACE_ME>
...
-ADMIN_ACCESS_TOKEN=rwwee3$123
+ADMIN_ACCESS_TOKEN=<REPLACE_ME>Also applies to: 132-132
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/docker/ubuntu/README.md` around lines 108 -
112, The .env example in README.md contains real-looking tokens; replace any
hardcoded secrets with generic placeholders (e.g., YOUR_API_KEY,
YOUR_GITHUB_TOKEN) and remove or redact any actual tokens or keys shown in the
file referenced by the .env example and near the Team section image; update the
README.md .env example and the other occurrence noted (line ~132) to use clearly
labeled placeholders and add a short note to rotate secrets if they were ever
real.
| [](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/notification/tree/master) | ||
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | ||
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | ||
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | ||
| [](https://prettier.io) | ||
| [](https://elevate-docs.shikshalokam.org/mentorEd/intro) | ||
| [](https://dev.elevate-apis.shikshalokam.org/notification/api-doc) | ||
|  |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Badges/docs link to the wrong repository/service.
They still reference notification.
🔧 Suggested fix
-[](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/notification/tree/master)
-[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification)
-[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification)
-[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification)
+[](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/entity-management/tree/master)
+[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management)
+[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management)
+[](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management)
...
-[](https://dev.elevate-apis.shikshalokam.org/notification/api-doc)
-
+[](https://dev.elevate-apis.shikshalokam.org/entity-management/api-doc)
+📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| [](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/notification/tree/master) | |
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | |
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | |
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_notification) | |
| [](https://prettier.io) | |
| [](https://elevate-docs.shikshalokam.org/mentorEd/intro) | |
| [](https://dev.elevate-apis.shikshalokam.org/notification/api-doc) | |
|  | |
| [](https://dl.circleci.com/status-badge/redirect/gh/ELEVATE-Project/entity-management/tree/master) | |
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management) | |
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management) | |
| [](https://sonarcloud.io/summary/new_code?id=ELEVATE-Project_entity-management) | |
| [](https://prettier.io) | |
| [](https://elevate-docs.shikshalokam.org/mentorEd/intro) | |
| [](https://dev.elevate-apis.shikshalokam.org/entity-management/api-doc) | |
|  |
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/ubuntu/README.md` around lines 15 - 22,
The README badges and links currently point to the `notification`
repository/service (e.g., badge URLs containing ELEVATE-Project/notification,
sonarcloud project=ELEVATE-Project_notification, GitHub package.json badge
filename=src%2Fpackage.json and the docs/API links) — update all badge URLs and
link targets to the correct repository/service identifiers for this project
(replace occurrences of "notification" and "ELEVATE-Project_notification" in the
shield/sonarcloud/GitHub package badge URLs and the docs/API links), ensuring
the visible link text remains appropriate and the package.json badge points to
the correct subfolder package if applicable.
| #Internal Access Token to decode | ||
| INTERNAL_ACCESS_TOKEN =xahusub12yexlashsbxAXADHBlaj | ||
|
|
||
| ACCESS_TOKEN_SECRET=bsj82AHBxahusub12yexlashsbxAXADHBlaj | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove secrets from the .env example.
The doc includes real-looking tokens; use placeholders and rotate if real.
🛡️ Suggested redaction
-INTERNAL_ACCESS_TOKEN =xahusub12yexlashsbxAXADHBlaj
-ACCESS_TOKEN_SECRET=bsj82AHBxahusub12yexlashsbxAXADHBlaj
+INTERNAL_ACCESS_TOKEN=<REPLACE_ME>
+ACCESS_TOKEN_SECRET=<REPLACE_ME>
...
-ADMIN_ACCESS_TOKEN=rwwee3$123
+ADMIN_ACCESS_TOKEN=<REPLACE_ME>Also applies to: 132-132
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/ubuntu/README.md` around lines 108 -
112, The README contains hardcoded secrets (INTERNAL_ACCESS_TOKEN and
ACCESS_TOKEN_SECRET); replace their values in the .env example with
non-sensitive placeholders (e.g.,
INTERNAL_ACCESS_TOKEN=YOUR_INTERNAL_ACCESS_TOKEN and
ACCESS_TOKEN_SECRET=YOUR_ACCESS_TOKEN_SECRET) and add a short note to rotate any
real secrets if they were used; make the same replacement for the other
occurrence referenced (line ~132) so no real tokens remain in the docs.
| ADMIN_TOKEN_HEADER_NAME="admin-auth-token" | ||
|
|
||
| #kafka health check topic | ||
| KAFKA_HEALTH_CHECK_TOPIC='KAFKA_HEALTH_CHECK_TOPIC' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deduplicate KAFKA_HEALTH_CHECK_TOPIC in the example.
It appears twice with different values.
✅ Suggested cleanup
-#kafka health check topic
-KAFKA_HEALTH_CHECK_TOPIC='KAFKA_HEALTH_CHECK_TOPIC'
...
-KAFKA_HEALTH_CHECK_TOPIC = entity-health-check-topic-check
+KAFKA_HEALTH_CHECK_TOPIC=entity-health-check-topic-checkAlso applies to: 142-142
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/ubuntu/README.md` at line 137, The
README contains a duplicate environment variable KAFKA_HEALTH_CHECK_TOPIC with
differing values; keep a single, consistent declaration by removing the
redundant entry or aligning both to the intended topic name, updating the
KAFKA_HEALTH_CHECK_TOPIC instance(s) in the README so only one definition exists
(or both match) to avoid conflicting examples in the native Ubuntu setup docs.
| ```env | ||
| # entity-management Service Config | ||
|
|
||
| # Port on which service runs | ||
| APPLICATION_PORT = 5001 | ||
|
|
||
| # Application environment | ||
| APPLICATION_ENV ="development" | ||
|
|
||
| # Route after the base URL | ||
| APPLICATION_BASE_URL='/entity-management/' | ||
|
|
||
| #Internal Access Token to decode | ||
| INTERNAL_ACCESS_TOKEN =xahusub12yexlashsbxAXADHBlaj | ||
|
|
||
| ACCESS_TOKEN_SECRET=bsj82AHBxahusub12yexlashsbxAXADHBlaj | ||
|
|
||
| # MongoDB Connection to the service | ||
| MONGODB_URL=mongodb://localhost:27017/elevate-entity | ||
|
|
||
| AUTH_METHOD = native | ||
|
|
||
| #User Service Url | ||
| USER_SERVICE_URL = http://localhost:5001 | ||
|
|
||
| USER_SERVICE_BASE_URL=/user | ||
|
|
||
| SERVICE_NAME = elevate-entity-service | ||
|
|
||
| #API Doc URL | ||
| API_DOC_URL="http://localhost:5001/entity-management/api-doc" | ||
|
|
||
| APPLICATION_HOST=localhost | ||
|
|
||
| IS_AUTH_TOKEN_BEARER="false" | ||
|
|
||
| ADMIN_ACCESS_TOKEN=rwwee3$123 | ||
|
|
||
| ADMIN_TOKEN_HEADER_NAME="admin-auth-token" | ||
|
|
||
| #kafka health check topic | ||
| KAFKA_HEALTH_CHECK_TOPIC='KAFKA_HEALTH_CHECK_TOPIC' | ||
|
|
||
| #Interface URL | ||
| INTERFACE_SERVICE_URL=http://localhost:5001 | ||
|
|
||
| KAFKA_HEALTH_CHECK_TOPIC = entity-health-check-topic-check | ||
|
|
||
| KAFKA_URL = kafka:9092 | ||
|
|
||
| KAFKA_COMMUNICATIONS_ON_OFF = ON | ||
|
|
||
| KAFKA_GROUP_ID = entity | ||
|
|
||
| HEALTH_CHECK_DEBUG_MODE = true | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove real-looking secrets from the sample .env.
The sample includes token-like values that trigger secret scanners and could be copied into real environments. Replace with placeholders and explicitly instruct users to generate real secrets.
🔐 Suggested fix
-INTERNAL_ACCESS_TOKEN =xahusub12yexlashsbxAXADHBlaj
-ACCESS_TOKEN_SECRET=bsj82AHBxahusub12yexlashsbxAXADHBlaj
+INTERNAL_ACCESS_TOKEN=<REPLACE_WITH_SECURE_TOKEN>
+ACCESS_TOKEN_SECRET=<REPLACE_WITH_SECURE_SECRET>
...
-ADMIN_ACCESS_TOKEN=rwwee3$123
+ADMIN_ACCESS_TOKEN=<REPLACE_WITH_SECURE_ADMIN_TOKEN>📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ```env | |
| # entity-management Service Config | |
| # Port on which service runs | |
| APPLICATION_PORT = 5001 | |
| # Application environment | |
| APPLICATION_ENV ="development" | |
| # Route after the base URL | |
| APPLICATION_BASE_URL='/entity-management/' | |
| #Internal Access Token to decode | |
| INTERNAL_ACCESS_TOKEN =xahusub12yexlashsbxAXADHBlaj | |
| ACCESS_TOKEN_SECRET=bsj82AHBxahusub12yexlashsbxAXADHBlaj | |
| # MongoDB Connection to the service | |
| MONGODB_URL=mongodb://localhost:27017/elevate-entity | |
| AUTH_METHOD = native | |
| #User Service Url | |
| USER_SERVICE_URL = http://localhost:5001 | |
| USER_SERVICE_BASE_URL=/user | |
| SERVICE_NAME = elevate-entity-service | |
| #API Doc URL | |
| API_DOC_URL="http://localhost:5001/entity-management/api-doc" | |
| APPLICATION_HOST=localhost | |
| IS_AUTH_TOKEN_BEARER="false" | |
| ADMIN_ACCESS_TOKEN=rwwee3$123 | |
| ADMIN_TOKEN_HEADER_NAME="admin-auth-token" | |
| #kafka health check topic | |
| KAFKA_HEALTH_CHECK_TOPIC='KAFKA_HEALTH_CHECK_TOPIC' | |
| #Interface URL | |
| INTERFACE_SERVICE_URL=http://localhost:5001 | |
| KAFKA_HEALTH_CHECK_TOPIC = entity-health-check-topic-check | |
| KAFKA_URL = kafka:9092 | |
| KAFKA_COMMUNICATIONS_ON_OFF = ON | |
| KAFKA_GROUP_ID = entity | |
| HEALTH_CHECK_DEBUG_MODE = true | |
| ``` |
🧰 Tools
🪛 Gitleaks (8.30.0)
[high] 107-107: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
(generic-api-key)
[high] 109-109: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
(generic-api-key)
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/windows/README.md` around lines 94 -
149, Replace any real-looking secret values in the sample .env (e.g.,
INTERNAL_ACCESS_TOKEN, ACCESS_TOKEN_SECRET, ADMIN_ACCESS_TOKEN,
ADMIN_TOKEN_HEADER_NAME) with clearly named placeholders (like
INTERNAL_ACCESS_TOKEN=REPLACE_WITH_SECURE_TOKEN) and add a brief comment
instructing users to generate and store real secrets securely (e.g., use a
secrets manager or strong random generator); ensure no token-like strings remain
in the file and keep non-secret config values unchanged.
| #kafka health check topic | ||
| KAFKA_HEALTH_CHECK_TOPIC='KAFKA_HEALTH_CHECK_TOPIC' | ||
|
|
||
| #Interface URL | ||
| INTERFACE_SERVICE_URL=http://localhost:5001 | ||
|
|
||
| KAFKA_HEALTH_CHECK_TOPIC = entity-health-check-topic-check | ||
|
|
||
| KAFKA_URL = kafka:9092 | ||
|
|
||
| KAFKA_COMMUNICATIONS_ON_OFF = ON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kafka URL and topic definitions are inconsistent for native Windows setup.
For a non-Docker local dependency setup, KAFKA_URL = kafka:9092 won’t resolve; it should be localhost. Also KAFKA_HEALTH_CHECK_TOPIC is defined twice with different values.
✅ Suggested fix
-#kafka health check topic
-KAFKA_HEALTH_CHECK_TOPIC='KAFKA_HEALTH_CHECK_TOPIC'
+# kafka health check topic
+KAFKA_HEALTH_CHECK_TOPIC=entity-health-check-topic-check
...
-KAFKA_HEALTH_CHECK_TOPIC = entity-health-check-topic-check
-
-KAFKA_URL = kafka:9092
+KAFKA_URL = localhost:9092🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/windows/README.md` around lines 134 -
144, The file defines KAFKA_HEALTH_CHECK_TOPIC twice and uses a Docker host for
KAFKA_URL which won’t resolve on native Windows; remove the duplicate
KAFKA_HEALTH_CHECK_TOPIC entry so there is a single canonical definition (keep
the intended value e.g., entity-health-check-topic-check) and change KAFKA_URL
from kafka:9092 to localhost:9092 so the non-Docker local dependency resolves
correctly; update only the constants KAFKA_HEALTH_CHECK_TOPIC and KAFKA_URL in
the README to reflect these fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
🤖 Fix all issues with AI agents
In `@src/documentation/3.4.0/setup/native/mac-os/README.md`:
- Around line 8-12: The img element with src
"https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" in
README.md is missing an alt attribute; update that <img> tag (and the other
occurrences around the block referenced as lines 200-202) to include a
meaningful alt text (e.g., alt="Elevate logo") to improve accessibility and
screen-reader support.
In `@src/documentation/3.4.0/setup/native/ubuntu/README.md`:
- Around line 8-12: The two <img> elements (e.g., the logo image with src
"https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" and the
contributors image referenced around lines 202–204) are missing alt attributes;
update each <img> tag to include a descriptive alt attribute (for example
alt="Elevate logo" for the logo and an appropriate description for the
contributors image) so screen readers can convey their content.
In `@src/documentation/3.4.0/setup/native/windows/README.md`:
- Around line 8-12: The image tag with src
"https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" (and the
other image occurrences around lines 199-201) is missing alt text; update the
<img> elements in README.md (search for the elevate-logo.png src and the other
image tags referenced) to include meaningful alt attributes (e.g., alt="Elevate
logo" or context-appropriate descriptions) to improve accessibility.
| <img | ||
| src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" | ||
| height="140" | ||
| width="300" | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add alt text for images to improve accessibility.
✅ Suggested fix
-<img
- src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png"
- height="140"
- width="300"
- />
+<img
+ src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png"
+ height="140"
+ width="300"
+ alt="ELEVATE logo"
+ />
...
- <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" />
+ <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" alt="Entity Management contributors" />Also applies to: 200-202
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/mac-os/README.md` around lines 8 - 12,
The img element with src
"https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" in
README.md is missing an alt attribute; update that <img> tag (and the other
occurrences around the block referenced as lines 200-202) to include a
meaningful alt text (e.g., alt="Elevate logo") to improve accessibility and
screen-reader support.
| <img | ||
| src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" | ||
| height="140" | ||
| width="300" | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add alt text for images to improve accessibility.
Both the logo and contributors image lack alt text, which hurts screen-reader accessibility.
✅ Suggested fix
-<img
- src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png"
- height="140"
- width="300"
- />
+<img
+ src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png"
+ height="140"
+ width="300"
+ alt="ELEVATE logo"
+ />
...
- <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" />
+ <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" alt="Entity Management contributors" />Also applies to: 202-204
🧰 Tools
🪛 markdownlint-cli2 (0.20.0)
8-8: Images should have alternate text (alt text)
(MD045, no-alt-text)
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/ubuntu/README.md` around lines 8 - 12,
The two <img> elements (e.g., the logo image with src
"https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" and the
contributors image referenced around lines 202–204) are missing alt attributes;
update each <img> tag to include a descriptive alt attribute (for example
alt="Elevate logo" for the logo and an appropriate description for the
contributors image) so screen readers can convey their content.
| <img | ||
| src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" | ||
| height="140" | ||
| width="300" | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add alt text for images to improve accessibility.
✅ Suggested fix
-<img
- src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png"
- height="140"
- width="300"
- />
+<img
+ src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png"
+ height="140"
+ width="300"
+ alt="ELEVATE logo"
+ />
...
- <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" />
+ <img src="https://contrib.rocks/image?repo=ELEVATE-Project/entity-management" alt="Entity Management contributors" />Also applies to: 199-201
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/native/windows/README.md` around lines 8 - 12,
The image tag with src
"https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png" (and the
other image occurrences around lines 199-201) is missing alt text; update the
<img> elements in README.md (search for the elevate-logo.png src and the other
image tags referenced) to include meaningful alt attributes (e.g., alt="Elevate
logo" or context-appropriate descriptions) to improve accessibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/documentation/3.4.0/dockerized/dockerFiles/docker-compose.yml`:
- Around line 54-55: Update the docker-compose.yml volumes bind mount to point
to the actual config file location instead of ./config.json: change the volumes
entry under the service (the volumes block in docker-compose.yml) to mount the
real file path commonFiles/configFile.json from the compose file's directory
into the container path /var/src/config.json so Docker mounts the file (not a
directory) and the app can read /var/src/config.json at startup.
🧹 Nitpick comments (1)
src/documentation/3.4.0/dockerized/dockerFiles/docker-compose.yml (1)
59-64: Remove or wire the unusedlogsvolume.
logsis declared but not mounted anywhere; consider removing it or using it.
| volumes: | ||
| - ./config.json:/var/src/config.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Find config files near the compose file
cd src/documentation/3.4.0
echo "=== Searching for config files ==="
find . -type f -name '*config*.json' 2>/dev/null | head -20
echo ""
echo "=== Directory structure around dockerized/dockerFiles ==="
tree -L 3 dockerized/ 2>/dev/null || find dockerized/ -type f | head -30Repository: ELEVATE-Project/entity-management
Length of output: 638
🏁 Script executed:
cat -n src/documentation/3.4.0/dockerized/dockerFiles/docker-compose.yml | head -70Repository: ELEVATE-Project/entity-management
Length of output: 2119
Correct the bind mount path for the config file.
The ./config.json file doesn't exist in the directory. Docker will create a directory at this path instead, which breaks app startup. The correct file is commonFiles/configFile.json, but the path needs to account for the docker-compose location:
✅ Correct fix
volumes:
- - ./config.json:/var/src/config.json
+ - ../../commonFiles/configFile.json:/var/src/config.json📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| volumes: | |
| - ./config.json:/var/src/config.json | |
| volumes: | |
| - ../../commonFiles/configFile.json:/var/src/config.json |
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/dockerized/dockerFiles/docker-compose.yml` around
lines 54 - 55, Update the docker-compose.yml volumes bind mount to point to the
actual config file location instead of ./config.json: change the volumes entry
under the service (the volumes block in docker-compose.yml) to mount the real
file path commonFiles/configFile.json from the compose file's directory into the
container path /var/src/config.json so Docker mounts the file (not a directory)
and the app can read /var/src/config.json at startup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@src/documentation/3.4.0/setup/docker/mac-os/README.md`:
- Line 73: The curl command in the README points to the temporary branch
`dockerSetup`; update the URL to reference a stable branch or tag (e.g., `main`
or a release tag) so the script remains valid after the PR is
merged—specifically change the URL in the command that downloads
`entity_setup.sh` so it uses the stable branch (keep the rest of the command
including chmod +x entity_setup.sh && sudo ./entity_setup.sh unchanged).
- Line 27: The CircleCI insights badge in the README currently references the
notification repo; update the badge URL and link target that contain
"https://dl.circleci.com/insights-snapshot/gh/ELEVATE-Project/notification/master/buil-and-test/badge.svg"
and the corresponding href (the markdown link) to point to the entity-management
repository instead of notification (e.g., replace "notification" with
"entity-management"), and verify the workflow/branch segments (such as
"buil-and-test" and "master") match the actual entity-management workflow names.
🧹 Nitpick comments (4)
src/documentation/3.4.0/setup/docker/windows/README.md (1)
102-102: Consider using path prefix for batch file execution.On Windows, it's safer to execute batch files in the current directory using a relative path prefix.
📝 Suggested improvement
-docker-compose-up.bat +.\docker-compose-up.batsrc/documentation/3.4.0/setup/docker/mac-os/README.md (3)
61-91: Add language identifiers to code blocks.Multiple fenced code blocks are missing language identifiers (bash/shell), which reduces readability and triggers markdownlint warnings (MD040).
📝 Proposed fix
-``` +```bash for port in 5001 27017 9092; do- ``` + ```bash curl -OJL https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/dockerSetup/src/documentation/3.4.0/dockerized/script/mac-os/entity_setup.sh && chmod +x entity_setup.sh && sudo ./entity_setup.sh-``` +```bash sudo ./docker-compose-down.sh-``` +```bash sudo ./docker-compose-up.sh
8-12: Add alt text to the logo image for accessibility.The logo image lacks alt text, which reduces accessibility for screen readers (MD045).
♿ Proposed fix
<img + alt="ELEVATE Logo" src="https://shikshalokam.org/wp-content/uploads/2021/06/elevate-logo.png"
53-55: Remove blank line inside blockquote.The blank line between blockquote lines triggers a markdownlint warning (MD028).
📝 Proposed fix
> Example Command: `mkdir entity-management && cd entity-management/` - > Note: All commands are run from the project directory.
|
|
||
| <details><summary>CircleCI insights</summary> | ||
|
|
||
| [](https://app.circleci.com/insights/github/ELEVATE-Project/notification/workflows/buil-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CircleCI insights badge references the wrong repository.
The CircleCI insights badge still points to the notification repository instead of entity-management.
🔧 Proposed fix
-[](https://app.circleci.com/insights/github/ELEVATE-Project/notification/workflows/buil-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true)
+[](https://app.circleci.com/insights/github/ELEVATE-Project/entity-management/workflows/buil-and-test/overview?branch=master&reporting-window=last-30-days&insights-snapshot=true)🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/docker/mac-os/README.md` at line 27, The
CircleCI insights badge in the README currently references the notification
repo; update the badge URL and link target that contain
"https://dl.circleci.com/insights-snapshot/gh/ELEVATE-Project/notification/master/buil-and-test/badge.svg"
and the corresponding href (the markdown link) to point to the entity-management
repository instead of notification (e.g., replace "notification" with
"entity-management"), and verify the workflow/branch segments (such as
"buil-and-test" and "master") match the actual entity-management workflow names.
|
|
||
| 1. **Download and execute main setup script:** Execute the following command in your terminal from the project directory. | ||
| ``` | ||
| curl -OJL https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/dockerSetup/src/documentation/3.4.0/dockerized/script/mac-os/entity_setup.sh && chmod +x entity_setup.sh && sudo ./entity_setup.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update script URL to reference a stable branch.
The setup script URL references the PR branch dockerSetup, which will become invalid after the PR is merged. This documentation should reference a stable branch like main or a version tag.
🔧 Proposed fix
- curl -OJL https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/dockerSetup/src/documentation/3.4.0/dockerized/script/mac-os/entity_setup.sh && chmod +x entity_setup.sh && sudo ./entity_setup.sh
+ curl -OJL https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/main/src/documentation/3.4.0/dockerized/script/mac-os/entity_setup.sh && chmod +x entity_setup.sh && sudo ./entity_setup.sh📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| curl -OJL https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/dockerSetup/src/documentation/3.4.0/dockerized/script/mac-os/entity_setup.sh && chmod +x entity_setup.sh && sudo ./entity_setup.sh | |
| curl -OJL https://raw.githubusercontent.com/ELEVATE-Project/entity-management/refs/heads/main/src/documentation/3.4.0/dockerized/script/mac-os/entity_setup.sh && chmod +x entity_setup.sh && sudo ./entity_setup.sh |
🧰 Tools
🪛 markdownlint-cli2 (0.20.0)
[warning] 73-73: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents
In `@src/documentation/3.4.0/setup/docker/mac-os/README.md` at line 73, The curl
command in the README points to the temporary branch `dockerSetup`; update the
URL to reference a stable branch or tag (e.g., `main` or a release tag) so the
script remains valid after the PR is merged—specifically change the URL in the
command that downloads `entity_setup.sh` so it uses the stable branch (keep the
rest of the command including chmod +x entity_setup.sh && sudo ./entity_setup.sh
unchanged).
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.