Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Provide a means to flag/tag issues in code #293

Open

Description

@berlincount

Code development allows with github currently allows two contribution workflows:

opening an issue
submitting a pull request
which is insufficient and - in most cases - out of band with current code.

Opening an issue allows giving feedback or reporting problems in a detailed manner,
but there's no way to mark the part of the code affected, if already identified.

Cursory ode reviews might be already done in passing by several people, but in a
lot of cases the effort of filing a bug report might just be to high for it to happen.
In other codebases, the sheer amount of issues reported results in nobody ever getting
to fix them in a meaningful manner.

Submitting a pull request ('sending patches') might be useful in some cases, i.e. if
the user has a concrete problem that they already have a fix for, and just submit it -
the same problem as above applies: it might never get merged, so people fork instead;
causing code fragmentation.

In a lot of cases it makes sense to have the original developer(s) fix the code instead
of letting a random affected user fix it; but the developer should have a relevant,
contextual hint.

Reviewboard (e.g.) has a really nice feature of allowing to comment an indivdual line,
and optionally opening an issue with the line - if github were to provide a similar feature
this could extend both the relevance of issues and improve on their context.

From a workflow perspective I'd allow any logged-in user to add a comment to any line on
any repository - which could be a simple "FIXME: off-by-one error?" or "TODO: improve error checking",
and might have an additional status by the owner of the repo ('confirmed', 'addressed', 'dismissed'),
with both the comment and the status being visible to any other user (including anonymous).

This way, even quick looks at codebases could provide the chance of improvements in the long run.

Thank you for your consideration.

Activity

  1. berlincount commented on Nov 12, 2014

    @berlincount
    Author

    Duplicates #211 #226 #284, will mail it to [email protected] though.

  2. cirosantilli commented on Nov 13, 2014

    @cirosantilli
    Collaborator

    As you mentioned on the possible duplicates, I don't see how this can be implemented: how to maintain the comment location after a file is modified across commits? (true: feasible is the file has not been modified on new commits)

    How does reviewboard deal with that? It's cool that you mentioned it though: I will have a look it later.

    I think the sanest option would be to have a line comment button that opens an issue prefilled with a link to the commit and line, or even better: a new metadata that contains that link.

    With the metadata, we could start doing funky things with it, like filtering issues that happen around a given file/line around a given commit (2D data), or even searching nearby unaltered lines that match or are close when the file changes.

  3. berlincount commented on Nov 13, 2014

    @berlincount
    Author

    I'd be happy enough already if the comment just sticks with the original commit.

  4. Mithgol commented on Dec 13, 2014

    @Mithgol

    It is already possible to comment on commits (for example, on cf851dd there is a comment form below) and even specific lines of them (for example, on cf851dd a button “+” appears when you hover over an individual line of the code).

    It is also already possible to refer from issues to the specific lines of a source code (or of a text) in a commit. You just put an URL in an issue (or in a comment). Example:

    https://github.com/Mithgol/node-webbbs/blob/1b063d4fdd010e4c38d7a1e10297632330cfaa37/paratype/PT%20Free%20Font%20License_eng_1.3.txt#L14-15

  5. berlincount commented on Jan 11, 2015

    @berlincount
    Author

    The comment stays with the commit and doesn't travel with the code, though ...

  6. Mithgol commented on Jan 13, 2015

    @Mithgol

    Yep.

    However, you have said you'd be happy enough already if the comment just sticks with the original commit.

  7. Mottie commented on Dec 31, 2016

    @Mottie

    I think it might be nice to be able to highlight the lines in the file you want to discuss, then press r and have it open a new issue with the file name and contents of that code block with line numbers in the issue. It would not be difficult to make a userscript that would do it!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions