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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task ID to expanded list item #1468

Conversation

gonzalo-bulnes
Copy link
Contributor

@gonzalo-bulnes gonzalo-bulnes commented Feb 13, 2024

Overview

Adds the Task ID to the list of properties visible in the expanded list item view of tasks.

preview-task-id-in-expanded-list-item

Why

This ID is useful to locate the task directory for inspection.
See https://community.opendronemap.org/t/19285
See also https://community.opendronemap.org/t/cleanned-point-cloud-on-webodm/19491/2 for another use case.

Note: The request made sense to me, and I found this was something I could do quickly to get familiar with the project. So I opened this PR opportunistically, without prior discussion (I didn't find any open issues on the topic, nor closed issues that were obviously related). If this is something that's been considered in the past, or that is otherwise known as not desirable, please feel free to close the PR, no hard feelings! 馃檪

Implementation

  • The task.id was already available in the view.
  • Placement:
    • Low in the table, so that the long UUID doesn't impair reading / skimming through
    • Above the Task Output to avoid unnecessary movement when the console is toggled

Testing

I don't think this needs automated testing (it renders without exploding!), what do you think?

I tested it manually in "production" with a freshly built Docker image on Linux (screenshot above).

Questions

  • This PR contains a new translatable string. Is there something that should be done to make sure it is taken into account for translations?

Other considerations

I think a good addition to this would be a "Copy to clipboard" button next to the ID (like GitHub puts next to the branch name of this PR for example), but that wasn't straightforward enough to add without discussion.

This ID is useful to locate the task directory for inspection.

Because it is fairly long, it seemed better to keep it relatively
low in the list of properties to avoid making the essential information
more difficult to read or skim through.

Yet placing it above the task output minimizes movement when the console
is toggled open.

See https://community.opendronemap.org/t/19285
@pierotofy
Copy link
Member

Looks good @gonzalo-bulnes, thanks for the PR!

@pierotofy pierotofy merged commit 8150b82 into OpenDroneMap:master Feb 13, 2024
1 check passed
@smathermather
Copy link
Contributor

Love this. I've always needed this (forever having work-arounds to get this ID) and I didn't even notice it's addition, so it's nice and low-key.

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.

None yet

3 participants