[PR #176] [MERGED] utils/attr_is_relation: add portfolio_type to relation set #186

Closed
opened 2026-03-03 11:59:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/finmars-platform/finmars-core/pull/176
Author: @HenkKalkwater
Created: 2/13/2026
Status: Merged
Merged: 2/24/2026
Merged by: @paktusov

Base: mainHead: add-portfolio-type-attr-to-relation-set


📝 Commits (1)

  • 6ceaa54 utils/attr_is_relation: add portfolio_type to relation set

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 poms/common/utils.py (+1 -0)

📄 Description

/api/v1/portfolios/portfolio/ev-group/ returned group_name and group_identifier as numbers instead of strings. Other endpoints, like /api/v1/instruments/instrument/ev-group/ return strings correctly. These numerical values were then shown in the UI, as showcased in https://github.com/finmars-platform/finmars-core/issues/149#issuecomment-3896996252.

By marking portfolio_type as a relation, it now correctly shows the names when invoking this API endpoint.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/finmars-platform/finmars-core/pull/176 **Author:** [@HenkKalkwater](https://github.com/HenkKalkwater) **Created:** 2/13/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@paktusov](https://github.com/paktusov) **Base:** `main` ← **Head:** `add-portfolio-type-attr-to-relation-set` --- ### 📝 Commits (1) - [`6ceaa54`](https://github.com/finmars-platform/finmars-core/commit/6ceaa546ae3ea4fd014d3478ca92ea6b45560974) utils/attr_is_relation: add portfolio_type to relation set ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `poms/common/utils.py` (+1 -0) </details> ### 📄 Description /api/v1/portfolios/portfolio/ev-group/ returned `group_name` and `group_identifier` as numbers instead of strings. Other endpoints, like /api/v1/instruments/instrument/ev-group/ return strings correctly. These numerical values were then shown in the UI, as showcased in https://github.com/finmars-platform/finmars-core/issues/149#issuecomment-3896996252. By marking `portfolio_type` as a relation, it now correctly shows the names when invoking this API endpoint. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem closed this issue 2026-03-03 11:59:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/finmars-core#186
No description provided.