Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags should be stored on a per-Person basis #57

Open
stephenfin opened this issue Oct 29, 2016 · 0 comments
Open

Tags should be stored on a per-Person basis #57

stephenfin opened this issue Oct 29, 2016 · 0 comments

Comments

@stephenfin
Copy link
Member

At present, a PatchTag contains three fields:

  • A link to the Patch
  • A link to the Tag
  • A count of the number of Tags stored against this Patch

This works, but it's not ideal:

  • Duplicated tags are possible, as we treat all tags the same
  • Tags cannot be associated with the other type of Submission, namely CoverLetter

We should change how we store PatchTags to include the Person, if any, that was associated with this patch. We may also take the opportunity to change this model to a SubmissionTag, such that cover letters can have tags stored against them. This would allow us to set tags on all patches if a tag is submitted against a cover letter.

veruu added a commit to veruu/patchwork that referenced this issue Mar 1, 2018
Solves getpatchwork#113 and partially getpatchwork#57 GitHub issues.

* Change PatchTag to SubmissionTag to allow tagging of cover letters
* Make CoverLetter tags increase tag counts on all patches in the
  series

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Mar 6, 2018
Solves getpatchwork#113 and getpatchwork#57 GitHub issues.

* Change PatchTag to SubmissionTag to allow tagging of cover letters
* Make CoverLetter tags increase tag counts on all patches in the
  series
* Allow storage of arbitrary string values with associated tags (this
  lets users know directly who acked or reviewed given patch, but also
  allows (for example) links to issue trackers as tags)
* Actually return tag values in the API

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Mar 6, 2018
Solves getpatchwork#113 and getpatchwork#57 GitHub issues.

* Change PatchTag to SubmissionTag to allow tagging of cover letters
* Make CoverLetter tags increase tag counts on all patches in the
  series
* Allow storage of arbitrary string values with associated tags (this
  lets users know directly who acked or reviewed given patch, but also
  allows (for example) links to issue trackers as tags)
* Actually return tag values in the API

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Mar 16, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, allow tags on comments, fix up
returning tags in the API.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Mar 27, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, allow tags on comments, fix up
returning tags in the API.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Apr 19, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue May 17, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue May 21, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue May 21, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue May 21, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue May 22, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue May 25, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue May 25, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to later be able to add tags to comments in
the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Jun 20, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to be able to add tags to comments in the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Jun 22, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to be able to add tags to comments in the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Jun 23, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to be able to add tags to comments in the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Jun 25, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to be able to add tags to comments in the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Jul 9, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to be able to add tags to comments in the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Jul 9, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, fix up returning tags in the API,
keep track of tag origin to be able to add tags to comments in the API.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 14, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 14, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 20, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 20, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 21, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Use relations Tag-Patch and Tag-CoverLetter to avoid duplication of
tags for each patch in series, and use `series` attribute of
SubmissionTag as a notion of a tag which is related to each patch in the
series (because it comes from cover letter or it's comments)

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 21, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Tags are now related to series rather then patches. If the tag comes
from a cover letter, only the series field is set, if from a comment on
cover, both series and comment fields are set, if from a patch, series
and patch fields are set and if from a comment on a patch, all fields
are set.

Move functionality related to tag extraction into parser.py.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 21, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Tags are now related to series rather then patches. If the tag comes
from a cover letter, only the series field is set, if from a comment on
cover, both series and comment fields are set, if from a patch, series
and patch fields are set and if from a comment on a patch, all fields
are set.

Move functionality related to tag extraction into parser.py.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
veruu added a commit to veruu/patchwork that referenced this issue Sep 21, 2018
Solve getpatchwork#113 and getpatchwork#57 GitHub issues, keep track of tag origin to be able
to add tags to comments in the API later.

Tags are now related to series rather then patches. If the tag comes
from a cover letter, only the series field is set, if from a comment on
cover, both series and comment fields are set, if from a patch, series
and patch fields are set and if from a comment on a patch, all fields
are set.

Move functionality related to tag extraction into parser.py.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant