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

DataLoaders 8: docs, guide, etc #4567

Merged
merged 9 commits into from
Dec 22, 2023
Merged

DataLoaders 8: docs, guide, etc #4567

merged 9 commits into from
Dec 22, 2023

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Dec 17, 2023

Some docs for the whole thing.

It heavily relies on linking to the examples for exact details and to avoid rot.

It's probably extremely bad. Help welcome.


Part of a series of PRs to make it possible to load any file from the local filesystem, by any means, on web and native:

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
    • Full build: app.rerun.io
    • Partial build: app.rerun.io - Useful for quick testing when changes do not affect examples in any way
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@teh-cmc teh-cmc added 📖 documentation Improvements or additions to documentation exclude from changelog PRs with this won't show up in CHANGELOG.md labels Dec 17, 2023
@teh-cmc teh-cmc changed the base branch from main to cmc/dataloaders_7_custom December 17, 2023 11:57
@teh-cmc teh-cmc added the do-not-merge Do not merge this PR label Dec 17, 2023
@teh-cmc teh-cmc marked this pull request as ready for review December 18, 2023 07:42
Copy link
Member

@nikolausWest nikolausWest left a comment

Choose a reason for hiding this comment

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

Good in general but I think we need to be a bit more explicit about how the binary plugin system works

docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
docs/content/getting-started/opening-any-file.md Outdated Show resolved Hide resolved
teh-cmc added a commit that referenced this pull request Dec 19, 2023
Introduce a first-class protocol for `DataLoader`s -- whether they are
builtin, custom, or external -- to announce that they don't support
loading a given piece of data.

This fixes one of the oldest issue when loading files in Rerun: loading
unsupported data would always bottom out in either the image or
websocket paths, leading to unrelated errors very confusing to users.

The loading process is now a two-pass process:
1. Dispatch the data to be loaded to all loaders, which will respond
ASAP whether they can do it or not.
1.1. If at least one compatible loader is found, go to 2
1.2. Otherwise, fail early with a nice error message for the end user
2. Dispatch the actual data loading.

This has important/subtle ramifications on the threading model, but
other than that is what you'd expect.


Checks:
- [x] Native: CLI examples/assets/*
- [x] Native: CLI examples/assets
- [x] Native: CLI examples/assets/* containing unsupported files
- [x] Native: CLI examples/assets containing unsupported files
- [x] Native: File>Open examples/assets/*
- [x] Native: File>Open examples/assets
- [x] Native: File>Open examples/assets/* containing unsupported files
- [x] Native: File>Open examples/assets containing unsupported files
- [x] Native: Drag-n-drop examples/assets/*
- [x] Native: Drag-n-drop examples/assets
- [x] Native: Drag-n-drop examples/assets/* containing unsupported files
- [x] Native: Drag-n-drop examples/assets containing unsupported files
- [x] Web: File>Open examples/assets/*
- [x] Web: Drag-n-drop examples/assets/*
- [x] Web: File>Open examples/assets/* containing unsupported files
- [x] Web: Drag-n-drop examples/assets/* containing unsupported files



---

Part of a series of PRs to make it possible to load _any_ file from the
local filesystem, by any means, on web and native:
- #4516
- #4517 
- #4518 
- #4519 
- #4520 
- #4521 
- #4565
- #4566
- #4567
Base automatically changed from cmc/dataloaders_7_custom to main December 19, 2023 19:00
teh-cmc added a commit that referenced this pull request Dec 19, 2023
Add support for registering custom loaders, the same way we offer
support for registering custom space views and store subscribers.

Checks:
- [x] cargo r -p custom_data_loader -- Cargo.toml

---

Part of a series of PRs to make it possible to load _any_ file from the
local filesystem, by any means, on web and native:
- #4516
- #4517 
- #4518 
- #4519 
- #4520 
- #4521 
- #4565
- #4566
- #4567
@teh-cmc teh-cmc removed the do-not-merge Do not merge this PR label Dec 19, 2023
@teh-cmc teh-cmc marked this pull request as draft December 20, 2023 07:45
@teh-cmc teh-cmc marked this pull request as ready for review December 22, 2023 09:13
Copy link
Member

@nikolausWest nikolausWest left a comment

Choose a reason for hiding this comment

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

Nice! (just a couple small suggestions)

docs/content/howto/open-any-file.md Outdated Show resolved Hide resolved
docs/content/howto/open-any-file.md Outdated Show resolved Hide resolved
@teh-cmc teh-cmc merged commit d72a4c9 into main Dec 22, 2023
40 checks passed
@teh-cmc teh-cmc deleted the cmc/dataloaders_8_guide branch December 22, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation exclude from changelog PRs with this won't show up in CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants