Skip to content

Conversation

@constantine2nd
Copy link
Contributor

No description provided.

The Problem

The error occurred because: - Consumer IDs like
`'{Some(api-manager-ii)}_bd817d3c-b72d-495d-81f3-eabbf6a5bb68'` contain
characters not allowed by the original URL pattern - The original
pattern `[0-9a-z\-]+` only allowed lowercase letters, numbers, and
hyphens - The actual consumer ID contained curly braces `{}`,
parentheses `()`, underscores `_`, and uppercase letters

I updated all consumer URL patterns from: ```python [0-9a-z\-]+ ``` to:
```python [0-9a-zA-Z\-_(){}%]+ ```

This new pattern allows: - Numbers: `0-9` - Lowercase letters: `a-z` -
Uppercase letters: `A-Z` - Hyphens: `-` - Underscores: `_` -
Parentheses: `()` - Curly braces: `{}` - Percent signs: `%` (for URL
encoding)
`/obp/v6.0.0/management/consumers/CONSUMER_ID/consumer/current-usage`
endpoint with the
Now when any field in the `RedisCallLimitJson` case class is missing
(e.g., `per_month: None`):

1. **Instead of showing "calls made"**, it will display **"Unlimited"**
2. **Instead of showing "Resets in X seconds"**, that line will be
**completely omitted** 3. The auto-refresh functionality will also
properly handle missing fields

This works for both the initial page load and the AJAX-based
auto-refresh functionality, ensuring consistent behavior across the
entire user interface.
rate limits alongside current usage counts in the format "X of Y calls
made"

How It Works:

Based on your example data: - **Rate Limit 1**: Per Second=10, Per
Minute=5, Per Hour=-1, Per Day=2340, Per Week=-1, Per Month=-1 - **Rate
Limit 2**: Per Second=1, Per Minute=26, Per Hour=450, Per Day=-1, Per
Week=4124, Per Month=23000

The system will now display: - **Per Second**: "1 of 11 calls made"
(10+1=11) - **Per Minute**: "7 of 31 calls made" (5+26=31) - **Per
Hour**: "26 of 450 calls made" (only limit 2 has a value) - **Per Day**:
"109 of 2340 calls made" (only limit 1 has a value) - **Per Week**: "109
of 4124 calls made" (only limit 2 has a value) - **Per Month**: "109 of
23000 calls made" (only limit 2 has a value)
Hey Marko re your API Manager PR, if (!toDateField.val()) {
toDateField.val("2026-01-01T00:00"); } - if we set a default, please
make the year 2100.
Added non-root user creation** (`appuser` with UID/GID 1000) - **Set
proper file ownership** for all application directories - **Switched
container execution** to non-root user with `USER appuser` - **Fixed
permission issues** for static files directory
@sonarqubecloud
Copy link

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.

1 participant