Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get command in tink-cli provides incorrect timestamp during get by Id #475

Closed
parauliya opened this issue Apr 6, 2021 · 0 comments · Fixed by #476
Closed

Get command in tink-cli provides incorrect timestamp during get by Id #475

parauliya opened this issue Apr 6, 2021 · 0 comments · Fixed by #476
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@parauliya
Copy link
Contributor

The output of tink workflow get 6502e8ba-96a7-11eb-a69c-0242ac120005 command is as follows:

+--------------------------------------+--------------------------------------+---------------+----------------------+----------------------+
| ID                                   | TEMPLATE ID                          | STATE         | CREATED AT           | UPDATED AT           |
+--------------------------------------+--------------------------------------+---------------+----------------------+----------------------+
| 6502e8ba-96a7-11eb-a69c-0242ac120005 | 44548ced-96a7-11eb-a69c-0242ac120005 | STATE_PENDING | 1970-01-01T00:00:00Z | 1970-01-01T00:00:00Z |
+--------------------------------------+--------------------------------------+---------------+----------------------+----------------------+

And the output for tink template get 44548ced-96a7-11eb-a69c-0242ac120005 command is as follows:

+--------------------------------------+----------------------+----------------------+----------------------+
| ID                                   | NAME                 | CREATED AT           | UPDATED AT           |
+--------------------------------------+----------------------+----------------------+----------------------+
| 44548ced-96a7-11eb-a69c-0242ac120005 | hello_world_workflow | 1970-01-01T00:00:00Z | 1970-01-01T00:00:00Z |
+--------------------------------------+----------------------+----------------------+----------------------+

And both of them exist because the output of tink workflow get and tink template get command is as follows:

+--------------------------------------+--------------------------------------+---------------+----------------------+----------------------+
| ID                                   | TEMPLATE ID                          | STATE         | CREATED AT           | UPDATED AT           |
+--------------------------------------+--------------------------------------+---------------+----------------------+----------------------+
| 6502e8ba-96a7-11eb-a69c-0242ac120005 | 44548ced-96a7-11eb-a69c-0242ac120005 | STATE_PENDING | 2021-04-06T07:12:06Z | 2021-04-06T07:12:06Z |
+--------------------------------------+--------------------------------------+---------------+----------------------+----------------------+
+--------------------------------------+----------------------+----------------------+----------------------+
| ID                                   | NAME                 | CREATED AT           | UPDATED AT           |
+--------------------------------------+----------------------+----------------------+----------------------+
| 44548ced-96a7-11eb-a69c-0242ac120005 | hello_world_workflow | 2021-04-06T07:11:11Z | 2021-04-06T07:11:11Z |
+--------------------------------------+----------------------+----------------------+----------------------+

As per the above outputs the values of createdAt and updatedAt fields are incorrect when we are trying to do get by id in both the cases ( workflow and template)

Expected Behaviour

Values of createdAt and updatedAt fields should be correct.

Current Behaviour

As per the above outputs the values of createdAt and updatedAt fields are incorrect when we are trying to do get by id in both the cases ( workflow and template)

Steps to Reproduce (for bugs)

  1. Create a hardware, template and then a workflow.
  2. Try to get template and workflow without ids. (tink template get and tink workflow get)
  3. A list with the template and workflow will be shown respectively which contains the template and workflow which were created in the first step.
  4. Now try to get the template or workflow by id (tink template get <id> and tink workflow get <id> )

Your Environment

  • Linux
  • Running Tinkerbell using Vagrant & VirtualBox
@parauliya parauliya self-assigned this Apr 8, 2021
@parauliya parauliya added the kind/bug Categorizes issue or PR as related to a bug. label Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant