Skip to content

fix: updated local properties configuration file#69

Open
ramnar wants to merge 1 commit intoPSMRI:mainfrom
ramnar:bugfix/updated-properties
Open

fix: updated local properties configuration file#69
ramnar wants to merge 1 commit intoPSMRI:mainfrom
ramnar:bugfix/updated-properties

Conversation

@ramnar
Copy link

@ramnar ramnar commented Feb 25, 2026

📋 Description

JIRA ID:

Please provide a summary of the change and the motivation behind it. Include relevant context and details.


✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

Summary by CodeRabbit

  • Chores
    • Updated local development environment configuration to use localhost endpoints with designated ports instead of production URLs, enabling improved local development workflows. API endpoint paths were streamlined by removing version identifiers across all services for consistency.

@coderabbitai
Copy link

coderabbitai bot commented Feb 25, 2026

📝 Walkthrough

Walkthrough

The development environment configuration file has been updated to redirect API endpoints from production URLs to localhost-based development servers on specific ports, and API path versions have been simplified by removing version suffixes.

Changes

Cohort / File(s) Summary
Development Environment Configuration
src/environments/environment.local.ts
Updated IP addresses and API endpoints to use localhost with specific ports; simplified API paths by removing version suffixes (-v1.0) from ADMIN_API and ECD_API; adjusted COMMON_API path structure. Public export signature unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐰 Ears perked with joy, the code now flows,
Through localhost's gentle pathways goes,
Version numbers shed like winter snow,
Dev servers spun, all set to glow!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'fix: updated local properties configuration file' is vague and generic. It uses imprecise language ('updated') and doesn't convey the specific changes made (localhost endpoint changes, API path modifications). Replace with a more descriptive title that specifies the main change, such as 'fix: update local environment endpoints to use localhost' or 'fix: configure local dev endpoints and API paths'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

@ramnar
Copy link
Author

ramnar commented Feb 25, 2026

@drtechie - Please review this. admin api and common api in ECD Module seems to be having their own copy of the api . I see -v1 in the url. please check

Copy link

@coderabbitai coderabbitai bot left a 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

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/environments/environment.local.ts`:
- Line 32: COMMON_API1 is set to a public loca.lt tunnel which will break the
three video-consultation endpoints (generateVideoLinkURL, sendSMSAPI,
updateCallStatusAPI); update COMMON_API1 to point to the local service (e.g.,
use the same localhost pattern as other local constants, such as
http://localhost:8081/) so those endpoints resolve to the local
video-consultation service, or if the service is intentionally not included in
this dev setup add a clear inline comment next to COMMON_API1 explaining that
omission and why the tunnel is left in place.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6702ac3 and ac28ef0.

📒 Files selected for processing (1)
  • src/environments/environment.local.ts

const commonIP = 'http://localhost:8083/';
const adminIP = 'http://localhost:8082/';
const COMMON_API = `${commonIP}commonapi/`;
const COMMON_API1 = `https://commonurl.loca.lt/`;
Copy link

@coderabbitai coderabbitai bot Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

COMMON_API1 still points to a public loca.lt tunnel — inconsistent with the rest of the local config.

Line 32 was not updated in this PR, but the three video-consultation endpoints that depend on it (lines 271–273) will silently fail if the tunnel https://commonurl.loca.lt/ is inactive:

generateVideoLinkURL  → COMMON_API1 + video-consultation/generate-link
sendSMSAPI            → COMMON_API1 + video-consultation/send-link
updateCallStatusAPI   → COMMON_API1 + video-consultation/update-call-status

If a local video-consultation service is running (e.g., on port 8081), update the constant to match the localhost pattern used for the other services:

🔧 Proposed fix
-const COMMON_API1 = `https://commonurl.loca.lt/`;
+const COMMON_API1 = `http://localhost:8081/`;   // adjust port as needed

If local video-consultation is intentionally excluded from this dev setup, a brief inline comment explaining why would prevent confusion.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/environments/environment.local.ts` at line 32, COMMON_API1 is set to a
public loca.lt tunnel which will break the three video-consultation endpoints
(generateVideoLinkURL, sendSMSAPI, updateCallStatusAPI); update COMMON_API1 to
point to the local service (e.g., use the same localhost pattern as other local
constants, such as http://localhost:8081/) so those endpoints resolve to the
local video-consultation service, or if the service is intentionally not
included in this dev setup add a clear inline comment next to COMMON_API1
explaining that omission and why the tunnel is left in place.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramnar now that you are on it, can we remove this too?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants