Skip to content

Conversation

ktyagiapphelix2u
Copy link
Contributor

@ktyagiapphelix2u ktyagiapphelix2u commented Sep 16, 2025

Description

Adding MKTG_URLS Links In Configuration Files
Enabling ENABLE_MKTG_SITE: true

Related Ticket

BOMS 215

@ktyagiapphelix2u ktyagiapphelix2u marked this pull request as ready for review September 23, 2025 11:46
@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 11:46
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables the marketing site feature in both CMS and LMS configurations by setting ENABLE_MKTG_SITE to true and adding comprehensive marketing URL mappings.

  • Changes the default value of ENABLE_MKTG_SITE from false to true in all configuration files
  • Adds marketing URL mappings for common pages (about, contact, FAQ, courses, etc.)
  • Updates both Python and YAML configuration files to maintain consistency

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
py_configuration_files/lms.py Changes default ENABLE_MARKETING_SITE environment variable from False to True
configuration_files/lms.yml Enables MKTG_SITE feature and adds marketing URL mappings with localhost:18000 root
configuration_files/cms.yml Enables MKTG_SITE feature and adds marketing URL mappings with localhost:18010 root

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@vgulati-apphelix vgulati-apphelix changed the title [DO NOT MERGE} feat: enable marketing site feature in CMS and LMS configurations [DO NOT MERGE] feat: enable marketing site feature in CMS and LMS configurations Sep 24, 2025
ENABLE_GRADE_DOWNLOADS: true
ENABLE_LTI_PROVIDER: false
ENABLE_MKTG_SITE: false
ENABLE_MKTG_SITE: true
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the FEATURES dict was going away and all of these were duplicated to top-level?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i have fixed them and make them to their correct place

MKTG_URLS: {}
MKTG_URL_LINK_MAP: {}
MKTG_URLS:
ROOT: http://localhost:18010
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this was asked elsewhere, but ROOT: '' does not work?

Copy link
Contributor Author

@ktyagiapphelix2u ktyagiapphelix2u Sep 26, 2025

Choose a reason for hiding this comment

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

ROOT: '' (empty string) does not work as it requires a non-empty value for ROOT in MKTG_URLS. If you set it to an empty string, you’ll get errors. That’s why we use ROOT: http://localhost:18010 for devstack

Uses the same LMS instance for both learning and marketing pages ROOT: http://localhost:18000 points marketing URLs back to the LMS itself

Keep the configurations different as they are designed for different use cases. The devstack configuration allows you to test marketing site integration during development, while the sandbox configuration provides a simpler setup for basic testing.

@Copilot Copilot AI review requested due to automatic review settings September 26, 2025 05:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- host: edx.devstack.elasticsearch
port: 9200
use_ssl: false
ENABLE_MKTG_SITE: true
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

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

Remove trailing whitespace after 'true'.

Suggested change
ENABLE_MKTG_SITE: true
ENABLE_MKTG_SITE: true

Copilot uses AI. Check for mistakes.

- host: edx.devstack.elasticsearch
port: 9200
use_ssl: false
ENABLE_MKTG_SITE: true
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

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

Remove trailing whitespace after 'true'.

Suggested change
ENABLE_MKTG_SITE: true
ENABLE_MKTG_SITE: true

Copilot uses AI. Check for mistakes.

MKTG_URLS: {}
MKTG_URL_LINK_MAP: {}
MKTG_URLS:
ROOT: http://localhost:18000
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

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

The ROOT URL uses port 18000, but this appears to be a hardcoded localhost development URL. Consider using an environment variable or configuration parameter to make this configurable across different environments.

Suggested change
ROOT: http://localhost:18000
ROOT: ${MKTG_ROOT_URL:http://localhost:18000}

Copilot uses AI. Check for mistakes.

MKTG_URLS: {}
MKTG_URL_LINK_MAP: {}
MKTG_URLS:
ROOT: http://localhost:18010
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

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

The ROOT URL uses port 18010, but this appears to be a hardcoded localhost development URL. Consider using an environment variable or configuration parameter to make this configurable across different environments.

Suggested change
ROOT: http://localhost:18010
# The ROOT URL for marketing pages. Set via the MKTG_URLS_ROOT environment variable, defaults to localhost:18010 for development.
ROOT: ${MKTG_URLS_ROOT:http://localhost:18010}

Copilot uses AI. Check for mistakes.

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.

3 participants