Add lorisFetch wrapper for centralized 401/login handling#10333
Add lorisFetch wrapper for centralized 401/login handling#10333Montekkundan wants to merge 2 commits intoaces:mainfrom
Conversation
|
Hey @Montekkundan ! great work on this set of I don't mean to throw a massive wrench in your work, but I've been working on an implementation to resolve some of issues you're tackling here and it's just been merged in #9999 . It would be great if we can make use of this new HTTP I think a good rule of thumb could be:
@driusan what do you think? If yes then @Montekkundan I would be happy to give you any information you need to get it functioning. |
|
Makes sense to me. I reviewed #9999 and I’m aligned with using I’ll wait for @driusan confirmation before changing the PRs. @HenriRabalais if you have a preferred migration pattern for existing modules (where to define client classes, how to surface errors in UI, and how to handle query params), please share and I’ll follow it in follow-up commits. |
|
@HenriRabalais I agree with the idea and I leave it up to you to decide if it should be updated to use lorisFetch, since you're the one who reviewed the lorisFetch code and you know the Client architecture. |
|
@Montekkundan Module-specific |
|
@HenriRabalais follow-up pushed per client guidance. Could you re-review when you have a moment? Thanks 😄! |
|
Hey @Montekkundan, thanks for the PR updates! I think I might not have been clear about how to set up the Client subclasses. These subclasses (e.g. To keep our architecture clean and our error handling consistent:
We don't want to treat the Does that make sense? |
|
@HenriRabalais ahh i see, thanks for clarifying. I pushed follow-up commits to align with the structure! |
|
Great! I'll take a look now. Let me know if you have any trouble getting the Client subclasses to work. |
Summary
Why
What changed
Tests
did not run (no functional changes beyond wrapper wiring).