Project

General

Profile

Actions

Bug #12292

open

APIForNG. Ошибка в методе 4 -/getattributes при вставке значений через Generator

Added by Радек Мария about 1 year ago. Updated about 1 year ago.

Status:
Verified
Priority:
Normal
Category:
-
Target version:
-
Start date:
03/31/2023
Due date:
% Done:

100%

Estimated time:
Detected in build:
git
Platform:
Published in build:
1.4.779

Description

Если в интерфейсе Requality создать атрибут, чье значение формируется при помощи функционала Generator, то при запросе атрибутов через API этот атрибут вернется как незавершенный.

Пример настройки в интерфейсе:

Ответ из API:

{
  "success" : true,
  "result" : {
    "attributes" : {
      "19589378-a5c7-4eb9-92b7-a2bde94fe2f1" : {
        "attributes" : {
          "_numericId" : {
            "value" : "3",
            "type" : "STRING" 
          },
          "_index" : {
            "value" : "4",
            "rawValue" : "4",
            "type" : "STRING" 
          },
          "_type" : {
            "value" : "Requirement",
            "rawValue" : "Requirement",
            "type" : "STRING" 
          },
          "generator" : {

Атрибут представлен в ответе, но не сформирован до конца: "generator" : {


Files

clipboard-202303311249-xzecm.png (32.8 KB) clipboard-202303311249-xzecm.png Радек Мария, 03/31/2023 12:49 PM
Actions #1

Updated by Denis Kildishev about 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #2

Updated by Denis Kildishev about 1 year ago

  • Published in build set to 1.4.779
Actions #3

Updated by Радек Мария about 1 year ago

  • Status changed from Resolved to Verified

На примере отработало корректно.
В ответе получено:

{
   "success": true,
   "result": {"attributes": {"19589378-a5c7-4eb9-92b7-a2bde94fe2f1": {"attributes":    {
      "_numericId":       {
         "value": "4",
         "type": "STRING" 
      },
      "_index":       {
         "value": "4",
         "rawValue": "4",
         "type": "STRING" 
      },
      "_type":       {
         "value": "Requirement",
         "rawValue": "Requirement",
         "type": "STRING" 
      },
      "generator":       {
         "value":          [
                        {
               "value": "83",
               "type": "STRING" 
            },
                        {
               "value": "18",
               "type": "STRING" 
            },
                        {
               "value": "76",
               "type": "STRING" 
            }
         ],
         "valuesType": "STRING",
         "type": "LIST" 
      },
      "_id":       {
         "value": "004",
         "rawValue": "004",
         "type": "STRING" 
      }
   }}}}
}

Actions

Also available in: Atom PDF