Repository navigation
Conversation
Signed-off-by: CHAFIK EL IDRISSI <[email protected]>
|
Welcome to the Microcks community! 💖 Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly. Hope you have a great time there! |
lbroudoux
left a comment
There was a problem hiding this comment.
This looks all good. Thanks for your contribution!
|
You are now a Microcks community contributor! 💖 Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏 📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌" Kudos and please keep going, we need you 🙌 |
Signed-off-by: CHAFIK EL IDRISSI [email protected]
Description
GET /api/services/searchcall when filtering the services list by domain label:filterServices()both fetched the results and navigated to update the URL, and that navigation re-triggered thequeryParamssubscription which calledfilterServices()a second time with the same filter.GET /api/servicescall) — fixed the same way.handleFilter()only updates the URL, and thequeryParamssubscription remains the single place that triggers the actual API call.buildLabelsFilter()helper to remove the duplicated label-map construction betweenfilterServices()andhandleFilter().Testing: Verified manually against a local backend (
docker-compose-devmode.yml) +ng serve— checked the Network tab before/after for: applying a domain filter, changing the filter, and clearing it. Each action now triggers exactly one API call instead of two.ng build --configuration=productionpasses.AI usage disclosure: I used Claude to help explain the root cause and review the code I wrote myself; no code was generated by AI.
Related issue(s)
Fixes #2297