bobbai00 opened a new issue, #9492:
URL: https://github.com/apache/texera/issues/9492
### Task Summary
While the kinds move (#9490), their old routes stay as adapters and their
old tables stay as views, so the frontend keeps working without change. This
task ends that period. Once every caller of a legacy route uses the generated
client, the route is removed. Once every reader of a view reads the new tables,
the view is dropped. Then the old id columns and the per-kind access and
sharing code go too, and old ids survive only as a mapping to `rid`.
#### Before
```mermaid
flowchart LR
ang["Angular frontend"]
gen["Generated client<br/>React frontend, agent service"]
ad["Legacy routes<br/>as adapters"]
ifc["Unified routes"]
sh["Shared code"]
t[("New tables")]
old["Old readers"]
v[("Views with the<br/>old table names")]
ang --> ad
gen --> ifc
ad --> sh
ifc --> sh
sh --> t
old --> v
v --> t
```
#### After
```mermaid
flowchart LR
gen["Every client<br/>generated client"]
ifc["Unified routes"]
sh["Shared code"]
t[("New tables")]
gen --> ifc --> sh --> t
```
#### Scope
The legacy resource and sharing routes, the views with the old table names,
the old id columns, which give way to one mapping from old id to `rid`, and the
hand-written resource clients. Operations of one kind, such as uploading a
dataset file, stay: by then they are declared in the contract (#9490).
#### Discussion Points
1. **The Angular frontend.** It can move its resource calls to the generated
client, or the legacy routes can stay until the React frontend (#9387) replaces
it. Moving Angular is work that will be thrown away; waiting keeps the adapters
for longer.
2. **Old ids.** Links to a workflow or a dataset carry today's ids and live
in bookmarks, emails and papers, and the result URIs stored with executions
carry workflow ids. The mapping from old id to `rid` keeps both working, for
example with a redirect for links.
3. **Callers outside the repository.** Scripts that call the API directly
need a deprecation notice, and a release in which both the old and the new
routes work.
Done when no legacy resource route or view remains, old ids survive only in
the mapping to `rid`, and every resource call in the agent service, and in the
frontend if discussion point 1 says so, goes through the generated client.
### Task Type
- [x] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [ ] Testing / QA
- [ ] Documentation
- [ ] Performance
- [ ] Other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]