Skip to content

Conversation

@chutten
Copy link

@chutten chutten commented Mar 21, 2019

Fixes #26

There wasn't any UI code inside the onChange listener so I didn't make the
needinfo setting visually subordinate to the all flags setting. Instead it is
semantically subordinate.

Fixes mikeconley#26

There wasn't any UI code inside the onChange listener so I didn't make the
needinfo setting visually subordinate to the all flags setting. Instead it is
semantically subordinate.
@mikeconley
Copy link
Owner

Sorry for the delay - I hope to have this reviewed later this week.

@mikeconley mikeconley self-requested a review March 26, 2019 01:54

if (settings.allBugzillaFlags) {
let flagCounts = {};
bugzillaData.result.result.requestee.map(f => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we need to use a map() here, since we're not actually using the return value. This could probably be a forEach, or (preferable):

let flagCounts = {};
for (let flag of bugzillaData.result.result.requestee) {
  if (!(f.type in flagCounts)) {
    flagCounts[f.type] = 0;
  }
  flagCounts[f.type]++;
}

return flagCounts;

Copy link
Owner

@mikeconley mikeconley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @chutten!

If you have the time, I have some minor suggestions here.

Mainly, I'm hoping we can have individual toggles for review, feedback, data-review and needinfo flags, so that users can pick and choose.

Do you think you'd have time to do that?

}
let reviewTotal =

if (settings.allBugzillaFlags) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we have the data, I guess we might as well do this count-up, regardless of whether or not this setting is set.

<div class="form-rows">
<input type="checkbox" id="bugzilla-allBugzillaFlags" data-setting="allBugzillaFlags">
<label for="bugzilla-allBugzillaFlags">Count all Bugzilla Flags (implies "Count open needinfos too")</label>
</div>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably, the flags we care about are:

  • review
  • feedback
  • data-review
  • needinfo

Can we have those as individual entries instead?

@gcp
Copy link

gcp commented Sep 11, 2019

@mikeconley @chutten Any chance of moving this forward? I had the same problem of missing a feedback? because I basically rely on MyQOnly.

If neither of you is able to continue working on this, I can give it a shot, but I wanted to nag just in case you totally forgot about this pull.

@chutten
Copy link
Author

chutten commented Sep 11, 2019

@gcp Yeah, sorry, I haven't made any forward progress on this since March. Please feel free to take it over.

@mikeconley
Copy link
Owner

If neither of you is able to continue working on this, I can give it a shot

Please do!

@jaredhirsch
Copy link
Contributor

ooh, this feature would be great! I can take this over the finish line

@jaredhirsch
Copy link
Contributor

...actually, I might just start a new patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could we add more request types for Bugzilla?

4 participants