Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

grtlr
Copy link
Member

@grtlr grtlr commented May 21, 2025

Related

What

Another big step towards having full tagging support in the viewer. By removing Component::descriptor() we make it harder to accidentally use untagged descriptors and therefore reduce bugs in our code, and in our users code.

This refactor goes right up to the point where we have to change our SDKs, so there is more design work to be made (via new AnyValues).

To achieve this we still rely on untagged components when implementing ComponentBatch::descriptor (left todos there).

Next steps are:

  • Remove remaining untagged methods (track usage of Component::name())
  • Designing new AnyValues AnyValues should use argument names to set archetype_field_name metadata #9906 for all SDKs.
  • Making ComponentDescriptor::new more explicit when using untagged components or prevent untagged components all together by removing the optionals.
  • Optionally getting rid of ComponentBatch (Maybe we wait for the removal of indicator components).

Dependency

Copy link

github-actions bot commented May 21, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
f93b4a3 https://rerun.io/viewer/pr/10038 +nightly +main

Note: This comment is updated whenever you push a commit.

@grtlr grtlr added include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages labels May 21, 2025
@grtlr grtlr requested a review from teh-cmc May 21, 2025 15:51
@grtlr grtlr mentioned this pull request May 21, 2025
28 tasks
@grtlr grtlr added the do-not-merge Do not merge this PR label May 21, 2025
@grtlr grtlr force-pushed the grtlr/remove-static-component-descriptor branch from 6273747 to ef67f98 Compare May 22, 2025 05:41
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!
interestingly this now for the first time makes "untagged" a concept in the codebase, but I figure that's how we used the term by now anyways

@grtlr
Copy link
Member Author

grtlr commented May 22, 2025

Do you think we should come up with a different name / type?

@Wumpf
Copy link
Member

Wumpf commented May 22, 2025

I'm nervous about "untagged" because of the rerun-historical connotation: There was a world where we had only component name so this was truly untagged. But since 0.22 everything always has a tag, just that that tag is sometimes component-name-only. Calling component-name-only "untagged" rubs me a little bit the wrong way because compared to 0.21 it's still technically tagged. But a) that's ancient past now and b) I don't have any better idea what to call this either and it's good to give it a name!

@grtlr
Copy link
Member Author

grtlr commented May 22, 2025

We have decided on calling these type of descriptors partial instead of untagged.

@grtlr grtlr removed the do-not-merge Do not merge this PR label May 22, 2025
@grtlr grtlr merged commit caba60f into main May 22, 2025
42 of 44 checks passed
@grtlr grtlr deleted the grtlr/remove-static-component-descriptor branch May 22, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants