Remove/cleanup extrude implementations
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by locating the extrude functions and existing FromRequest implementations across the codebase, then inspect which middleware paths still depend on them. The work is done when obsolete extruders are removed or replaced with extraction from HttpRequest, including simplified path handling where applicable.
Written by the indexing model from the issue text.
Description
Extractors (i.e. implementations of the FromRequest trait) operate on HttpRequests. Middlewares take ServiceRequests, which are a higher-level abstraction over HTTP requests. We used to do a lot of work in middlewares, and building extractor-like abstractions to improve modularity and readability was desirable. These abstractions took the form of extrude functions defined in numerous places across the codebase and were responsible for extracting information from ServiceRequests (or its constituent parts, like RequestHead).
Now that we do a lot less in middleware (the db transaction handling and precondition checks are no longer middleware), we don't need as many extrude functions. Instead, we should explore writing new extractors or adding to existing extractors to retrieve the information we need from HttpRequest instead of ServiceRequest, simplifying some of their implementations (e.g. the _from_path methods wouldn't need extract path elements as manually as they currently do, requiring them to urldecode).
https://github.com/mozilla-services/syncstorage-rs/issues/833
┆Issue is synchronized with this Jira Task
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 86
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 21
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla-services/syncstorage-rs
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
mozilla-services/syncstorage-rs#2587 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
mozilla-services/syncstorage-rs#2586 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
mozilla-services/syncstorage-rs#2579 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
mozilla-services/syncstorage-rs#2577 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
mozilla-services/syncstorage-rs#2576 · 2 comments ·
All issues in mozilla-services/syncstorage-rs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100