Skip to content

Conversation

@aleksandrmelnikov
Copy link
Contributor

What this PR does:

Which issue(s) this PR fixes:

Fixes onepanelio/core# #387

Special notes for your reviewer:

Aleksandr Melnikov added 30 commits July 27, 2020 12:07
- Using specific function to achieve same functionality
Removing the for-loop because it caused duplicate values.
Wrong:
```json
  "parameters": [
    {
      "type": null,
      "required": null,
      "name": "source",
      "options": null,
      "hint": null,
      "value": "name: command\norder: 1\nvalue: python mnist/main.py --epochs=5\n",
      "display_name": null
    },
    {
      "type": null,
      "required": null,
      "name": "command",
      "options": null,
      "hint": null,
      "value": "name: command\norder: 1\nvalue: python mnist/main.py --epochs=5\n",
      "display_name": null
    }
```
Right:
```json
  "parameters": [
    {
      "options": [],
      "name": "source",
      "value": "https://github.com/onepanelio/tensorflow-examples.git",
      "type": "",
      "displayName": "",
      "hint": "",
      "required": false
    },
    {
      "options": [],
      "name": "command",
      "value": "python mnist/main.py --epochs=5",
      "type": "",
      "displayName": "",
      "hint": "",
      "required": false
    }
```
and generate the "parameters" column values for each.
Adding code to paginate through results.
- Results may be less than pageSize.
Changed to paginate only if there are over 0 results.
- So we can load the JSONB data from the database.
- Instead, retrieving the WorkflowTemplateVersion from the database,
and using it's params for the WorkflowTemplate's
- Otherwise, templates are not found consistently.
- This ensures the transaction commits.
- Directly retrieving all the WorkflowTemplateVersions from the database
and updating them, instead of going through namespaces, workflow templates,
then the versions.
@Vafilor Vafilor merged commit 819c57b into dev Jul 29, 2020
@Vafilor Vafilor deleted the feat/core.387-merge branch July 29, 2020 22:51
@Vafilor Vafilor added this to the v0.12.0 milestone Aug 12, 2020
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.

3 participants