Processings are not updated in BD #2

Open
opened 2025-02-14 16:40:07 +01:00 by pb · 1 comment
Owner

With two processing in the same worflow the changes are not saved in the DB

image

In the DB, the processing corresponding to it are written as following :

"c6b75eab-4374-4a83-b362-dc9677e0bdf4": {
        "height": 100,
        "position": {
          "x": 333.5,
          "y": 482.5,
          "id": ""
        },
        "itemresource": {
          "processing": {
            "infrastructure": 0,
            "usage": {
              "scaling_model": "2"
            },
            "open_source": false,
            "license": "GPLv2",
            "abstractintanciatedresource": {
              "abstractresource": {
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
                "short_description": "A minimal Docker image",
                "owners": [
                  {
                    "name": "IRT"
                  }
                ],
                "abstractobject": {
                  "update_date": {
                    "$date": "2021-09-30T14:00:00.000Z"
                  },
                  "updater_id": "c0cece97-7730-4c2a-8c20-a30944564106",
                  "access_mode": 0,
                  "id": "2ce0323f-a85d-4b8b-a783-5280f48d634a",
                  "name": "alpine",
                  "is_draft": false,
                  "creator_id": "c0cece97-7730-4c2a-8c20-a30944564106",
                  "creation_date": {
                    "$date": "2021-09-30T14:00:00.000Z"
                  }
                },
                "type": "processing",
                "logo": "https://cloud.o-forge.io/core/deperecated-oc-catalog/raw/branch/main/scripts/local_imgs/alpine-logo.png"
              },
              "instances": [
                {
                  "access": {
                    "container": {
                      "image": "alpine:3.7"
                    }
                  },
                  "resourceinstance": {
                    "abstractobject": {
                      "id": "7fdccb9c-7090-40a5-bacd-7435bc56c90d",
                      "name": "alpine Lille",
                      "is_draft": false,
                      "access_mode": 0
                    },
                    "location": {
                      "latitude": 50.62925,
                      "longitude": 3.057256
                    },
                    "partnerships": [
                      {
                        "namespace": "default"
                      }
                    ]
                  }
                }
              ]
            }
          }
        },
        "id": "c6b75eab-4374-4a83-b362-dc9677e0bdf4",
        "width": 100
      },
      "1136d65f-1829-4302-9e44-fe11bb7ca9bc": {
        "id": "1136d65f-1829-4302-9e44-fe11bb7ca9bc",
        "width": 100,
        "height": 100,
        "position": {
          "id": "",
          "x": 316,
          "y": 273
        },
        "itemresource": {
          "processing": {
            "abstractintanciatedresource": {
              "abstractresource": {
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
                "short_description": "A minimal Docker image",
                "owners": [
                  {
                    "name": "IRT"
                  }
                ],
                "abstractobject": {
                  "id": "2ce0323f-a85d-4b8b-a783-5280f48d634a",
                  "name": "alpine",
                  "is_draft": false,
                  "creator_id": "c0cece97-7730-4c2a-8c20-a30944564106",
                  "creation_date": {
                    "$date": "2021-09-30T14:00:00.000Z"
                  },
                  "update_date": {
                    "$date": "2021-09-30T14:00:00.000Z"
                  },
                  "updater_id": "c0cece97-7730-4c2a-8c20-a30944564106",
                  "access_mode": 0
                },
                "type": "processing",
                "logo": "https://cloud.o-forge.io/core/deperecated-oc-catalog/raw/branch/main/scripts/local_imgs/alpine-logo.png"
              },
              "instances": [
                {
                  "resourceinstance": {
                    "abstractobject": {
                      "id": "7fdccb9c-7090-40a5-bacd-7435bc56c90d",
                      "name": "alpine Lille",
                      "is_draft": false,
                      "access_mode": 0
                    },
                    "location": {
                      "latitude": 50.62925,
                      "longitude": 3.057256
                    },
                    "partnerships": [
                      {
                        "namespace": "default"
                      }
                    ]
                  },
                  "access": {
                    "container": {
                      "image": "alpine:3.7",
                      "command": "echo 'executed in a distance DC'"
                    }
                  }
                }
              ]
            },
            "infrastructure": 0,
            "usage": {
              "scaling_model": "2"
            },
            "open_source": false,
            "license": "GPLv2"
          }
        }
      }
With two processing in the same worflow the changes are not saved in the DB <img width="529" alt="image" src="attachments/fe32d480-816e-4c9d-8db4-2a712fb5060b"> In the DB, the processing corresponding to it are written as following : ```json "c6b75eab-4374-4a83-b362-dc9677e0bdf4": { "height": 100, "position": { "x": 333.5, "y": 482.5, "id": "" }, "itemresource": { "processing": { "infrastructure": 0, "usage": { "scaling_model": "2" }, "open_source": false, "license": "GPLv2", "abstractintanciatedresource": { "abstractresource": { "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", "short_description": "A minimal Docker image", "owners": [ { "name": "IRT" } ], "abstractobject": { "update_date": { "$date": "2021-09-30T14:00:00.000Z" }, "updater_id": "c0cece97-7730-4c2a-8c20-a30944564106", "access_mode": 0, "id": "2ce0323f-a85d-4b8b-a783-5280f48d634a", "name": "alpine", "is_draft": false, "creator_id": "c0cece97-7730-4c2a-8c20-a30944564106", "creation_date": { "$date": "2021-09-30T14:00:00.000Z" } }, "type": "processing", "logo": "https://cloud.o-forge.io/core/deperecated-oc-catalog/raw/branch/main/scripts/local_imgs/alpine-logo.png" }, "instances": [ { "access": { "container": { "image": "alpine:3.7" } }, "resourceinstance": { "abstractobject": { "id": "7fdccb9c-7090-40a5-bacd-7435bc56c90d", "name": "alpine Lille", "is_draft": false, "access_mode": 0 }, "location": { "latitude": 50.62925, "longitude": 3.057256 }, "partnerships": [ { "namespace": "default" } ] } } ] } } }, "id": "c6b75eab-4374-4a83-b362-dc9677e0bdf4", "width": 100 }, "1136d65f-1829-4302-9e44-fe11bb7ca9bc": { "id": "1136d65f-1829-4302-9e44-fe11bb7ca9bc", "width": 100, "height": 100, "position": { "id": "", "x": 316, "y": 273 }, "itemresource": { "processing": { "abstractintanciatedresource": { "abstractresource": { "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", "short_description": "A minimal Docker image", "owners": [ { "name": "IRT" } ], "abstractobject": { "id": "2ce0323f-a85d-4b8b-a783-5280f48d634a", "name": "alpine", "is_draft": false, "creator_id": "c0cece97-7730-4c2a-8c20-a30944564106", "creation_date": { "$date": "2021-09-30T14:00:00.000Z" }, "update_date": { "$date": "2021-09-30T14:00:00.000Z" }, "updater_id": "c0cece97-7730-4c2a-8c20-a30944564106", "access_mode": 0 }, "type": "processing", "logo": "https://cloud.o-forge.io/core/deperecated-oc-catalog/raw/branch/main/scripts/local_imgs/alpine-logo.png" }, "instances": [ { "resourceinstance": { "abstractobject": { "id": "7fdccb9c-7090-40a5-bacd-7435bc56c90d", "name": "alpine Lille", "is_draft": false, "access_mode": 0 }, "location": { "latitude": 50.62925, "longitude": 3.057256 }, "partnerships": [ { "namespace": "default" } ] }, "access": { "container": { "image": "alpine:3.7", "command": "echo 'executed in a distance DC'" } } } ] }, "infrastructure": 0, "usage": { "scaling_model": "2" }, "open_source": false, "license": "GPLv2" } } } ```
pb added the
Kind/Bug
Priority/High
labels 2025-02-14 16:40:15 +01:00
pb self-assigned this 2025-02-14 16:40:23 +01:00
mr was assigned by pb 2025-02-14 16:40:23 +01:00
Owner

Le problème a été résolu dans le commit #72ec01938e3602aa65433d7772e64c54b02501a5

Le problème a été résolu dans le commit #72ec01938e3602aa65433d7772e64c54b02501a5
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
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: core/oc-front#2
No description provided.