Git Product home page Git Product logo

Comments (7)

purpleidea avatar purpleidea commented on June 3, 2024

ACK, I like this idea.
As an aside, if there are no false-positives [1], then the --merge option will be a good workaround here.

[1] I define a false positive in this scenario as a situation when you have two bz accounts for example, and you list both, but you don't want the output from one of them for example, but you do want the output of that email address identity in another plugin. If this isn't an issue, then --merge will solve the problem, even though there's a performance hit of the extra erroneous bz queries.

HTH

from did.

psss avatar psss commented on June 3, 2024

Thanks for filing the issue, Luigi. My thoughts how we could
resolve this problem: Implement a new, extended syntax to the
email detection which would list all special cases by section:

Name Surname <[email protected]>; bz: [email protected]
Name Surname <[email protected]>; gh: other_login
[email protected]; bz: [email protected]; gh: other_login

The User() object would have method email() which would accept
config section name and in this way override the default email. In
addition, we shall support new method login() which will be used
in those plugins which perform queries based on login.

We could possibly also support providing these special cases
directly in individual config sections like this:

[bz]
type = bugzilla
prefix = BZ
url = https://bugzilla.redhat.com/xmlrpc.cgi
email = [email protected]

But we need to primarily support this feature for email (both
command line and config) to allow creating team reports:

--email '[email protected]; gh: x' --email '[email protected]; gh: y'

Does that make sense to you?

from did.

calmrat avatar calmrat commented on June 3, 2024

I haven't thought more than 5s on this but it seems complicated...

On Tue, Sep 22, 2015 at 10:43 AM, Petr Šplíchal [email protected]
wrote:

Thanks for filing the issue, Luigi. My thoughts how we could
resolve this problem: Implement a new, extended syntax to the
email detection which would list all special cases by section:

Name Surname [email protected]; bz: [email protected]
Name Surname [email protected]; gh: [email protected]; bz: [email protected]; gh: other_login

The User() object would have method email() which would accept
config section name and in this way override the default email. In
addition, we shall support new method login() which will be used
in those plugins which perform queries based on login.

We could possibly also support providing these special cases
directly in individual config sections like this:

[bz]
type = bugzilla
prefix = BZ
url = https://bugzilla.redhat.com/xmlrpc.cgi
email = [email protected]

But we need to primarily support this feature for email (both
command line and config) to allow creating team reports:

--email '[email protected]; gh: x' --email '[email protected]; gh: y'

Does that make sense to you?


Reply to this email directly or view it on GitHub
#36 (comment).

from did.

psss avatar psss commented on June 3, 2024

Complex yes, complicated (hopefully) not. Anyway, I haven't seen
any other option here so I've implemented it in this way :-)

from did.

psss avatar psss commented on June 3, 2024

Documentation available here:
http://did.readthedocs.org/en/latest/modules/#did.base.User

from did.

purpleidea avatar purpleidea commented on June 3, 2024

@psss Thanks for the patch, however my initial feeling (and I'm quite new to this project and code base, so don't give it a lot of weight) would have been to NACK this patch.

What I would have proposed:

each section [bugzilla] [whatever]
could specify an override username, and if that was specified, you would use that instead of the email list at the top.

This solves a few problems:

  1. The simple case of one email address for everything is still simple
  2. No complex syntax for the email format (eg: bz: foo, etc... looks a bit messy)
  3. Solves this problem in a straightforward way.

I hope my comments are valuable. I would have provided them sooner before the patch was merged, but it was written and merged so quickly before there was much discussion, so I'd generally welcome more of than first :)

Thanks again!

from did.

psss avatar psss commented on June 3, 2024

I see your point. Including the custom email/login aliases in
individual sections would make sense, unless you want/need to
support also gathering stats for multiple users. For this use
case it'd be hard to keep such information in config sections.

However, we could support both and add the other option as a
syntactic sugar to make the tool's usability a bit more sweet :)

from did.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.