bugbug
bugbug copied to clipboard
Update the components select when a product is selected
Just like we do when a team is selected.
Hello @marco-c I would like to work on this issue
Hello @Ayushsunny, this will need to be implemented in ui/changes/src/common.js.
You can run the ui project by doing: cd ui/changes and then npm run dev.
You will need to update async function buildComponentsSelect(teams = null) { by adding a product argument, and using it like the teams argument to filter the bug summaries.
Next, you will need to something like https://github.com/mozilla/bugbug/blob/7077c0c3b0310f8c1a25ea9ff144f53e80595a32/ui/changes/src/common.js#L1722-L1725, in the buildProductsSelect function.
Hello @Ayushsunny, this will need to be implemented in ui/changes/src/common.js. You can run the ui project by doing:
cd ui/changesand thennpm run dev.You will need to update
async function buildComponentsSelect(teams = null) {by adding aproductargument, and using it like theteamscomponent to filter the bug summaries. Next, you will need to something likehttps://github.com/mozilla/bugbug/blob/7077c0c3b0310f8c1a25ea9ff144f53e80595a32/ui/changes/src/common.js#L1722-L1725 , in the
buildProductsSelectfunction.
Hello @marco-c I'm getting this error while running this project by "npm run dev" on my terminal

Did you run npm install first?
Did you run
npm installfirst?
Yes sir.
@Ayushsunny, the error messages says "node_modules" doesn't exist, so it seems you didn't run npm install.
@Ayushsunny, the error messages says "node_modules" doesn't exist, so it seems you didn't run
npm install.
Thank you so much, It's working
@marco-c Sir can you please review my code that I'm going right or not?

In general, please don't share screenshot, please share code instead!
Sorry @sylvestre sir I'm new to open source I didn't know that, here is the code that i've added :
options["products"].callback = async function () {
await buildProductsSelect(new Set(getOption("products")));
return "components";
}; ```
@Ayushsunny you can submit a PR with your code changes, so it can be reviewed