Skip to content

Conversation

@haiodo
Copy link
Contributor

@haiodo haiodo commented Nov 20, 2025

If BILLING_URL is not specified, Billing will not be shown to users in self hosted environment.

@ArtyomSavchenko Please take a look, it is first part. Second part will be in huly.core repo and when I will create here.

@huly-github-staging
Copy link

Connected to Huly®: UBERF-14165

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
@haiodo haiodo force-pushed the allow-ignore-plugins branch from 3047aee to 3f3419e Compare November 20, 2025 14:04
@haiodo haiodo changed the title Allow ignore plugins Allow ignore billing Nov 20, 2025
Copilot finished reviewing on behalf of ArtyomSavchenko November 20, 2025 15:06
Copy link
Contributor

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 self-hosted environments to disable billing functionality when the BILLING_URL configuration is not specified. The main change conditionally loads billing resources only when BILLING_URL is set, preventing billing UI from appearing in self-hosted deployments that don't need it.

Key Changes:

  • Conditional loading of billing resources based on BILLING_URL configuration
  • Code formatting improvements including import statements and multi-line function calls
  • Memory limit increase for a Docker service (from 512m to 1024m)

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
dev/prod/src/platform.ts Adds conditional check to only load billing resources when BILLING_URL is configured; includes formatting improvements for imports and function calls
desktop/src/ui/platform.ts Mirrors the conditional billing resource loading for the desktop platform; includes extensive formatting improvements
dev/docker-compose.yaml Increases memory limit from 512m to 1024m for a service (likely to support development environment needs)

@ArtyomSavchenko ArtyomSavchenko merged commit f2895af into hcengineering:develop Nov 20, 2025
18 checks passed
ArtyomSavchenko pushed a commit that referenced this pull request Nov 20, 2025
* Disable billing if no billing url is specified

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>

* Add biling URL check

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>

---------

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
@haiodo haiodo deleted the allow-ignore-plugins branch November 20, 2025 17:52
ArtyomSavchenko pushed a commit that referenced this pull request Nov 21, 2025
* Disable billing if no billing url is specified

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>

* Add biling URL check

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>

---------

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
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