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

Include more fields in Create Issue modal #583

Merged
merged 39 commits into from
Aug 17, 2021

Conversation

mickmister
Copy link
Contributor

@mickmister mickmister commented Jun 8, 2020

Summary

You can now use every applicable Jira field in the Create Issue modal. Basically all of them except date pickers.

Ticket Link

Fixes #563
Fixes #520
Fixes #394
Fixes #471
Fixes #502

mickmister and others added 5 commits June 8, 2020 03:59
The client go-jira client library used doesn't implement label search.
This means changes had to be made to the GetClient method on Jira Instance
interface to also return http.Client that is configured and sent to NewClient
method of the go-jira library.

Delete console.log statement

Clean up code

Remove unused go package and update webapp snaps

Use RESTGet in GetLabels

Remove unnecessary function arg, url

Make autocomplete search more generic

Fix a comparison error

Make front end autocomplete components generic
@mickmister mickmister added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Jun 8, 2020
@mickmister mickmister requested review from larkox and jfrerich June 8, 2020 10:05
@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2020

Codecov Report

Merging #583 into master will decrease coverage by 0.49%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #583      +/-   ##
==========================================
- Coverage   34.50%   34.00%   -0.50%     
==========================================
  Files          51       52       +1     
  Lines        5684     5766      +82     
==========================================
  Hits         1961     1961              
- Misses       3530     3612      +82     
  Partials      193      193              
Impacted Files Coverage Δ
server/autocomplete_search.go 0.00% <0.00%> (ø)
server/client.go 8.54% <0.00%> (-0.67%) ⬇️
server/client_cloud.go 0.00% <0.00%> (ø)
server/client_server.go 0.00% <0.00%> (ø)
server/http.go 27.31% <0.00%> (-0.52%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf30c36...e1d9015. Read the comment docs.

Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

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

Some small change proposals.

server/client.go Outdated Show resolved Hide resolved
webapp/src/actions/index.js Outdated Show resolved Hide resolved
@mickmister mickmister marked this pull request as draft July 1, 2020 16:44
@mickmister mickmister marked this pull request as ready for review July 10, 2020 21:17
@mickmister mickmister requested a review from larkox July 10, 2020 21:18
@mickmister
Copy link
Contributor Author

@jfrerich This is ready for review

@mickmister mickmister changed the base branch from create-issue-epic-link to master July 10, 2020 21:25
@mickmister mickmister changed the title Include Assignee and Label pickers in Create Issue modal Include more fields in Create Issue modal Jul 10, 2020
@mickmister
Copy link
Contributor Author

Most of the diff is due to snapshots that contain the Jira issue metadata as a prop passing to several children. Looking at the jest testing docs and forums, it doesn't seem like this is avoidable unless we get rid of the snapshot tests.

@DHaussermann
Copy link

@mickmister issue 2B. occurs on Cloud only. I can create a separate issue for this. It was not introduced by this PR. I see it on Jira v3.0.0 Version bump branch.

@mickmister
Copy link
Contributor Author

@DHaussermann Do you know which bugs that were introduced in this PR that must be addressed here?

@DHaussermann
Copy link

DHaussermann commented Oct 8, 2020

@mickmister I've taken another look at the issues here:

1. Post text is not added to issue description when the modal opens --> seems resolved

2A. Not all missing mandatory fields missing are shown on the bullet list in Mattermost post along with the link. It will only show one of them. --> seems introduced here does not repro on the 3.0.0 release

2B. Reporter is missing --> Not new. Separate issue opened

2C. Some of the fields I passed in via the modal are not shown in the Jira UI when I go to finish saving the issue but the rest are there. --> This seems only applicable to this PR. I see it with Components, Fix version, label, Checkboxes (not an exhaustive list) which are all fields where it was previously not possible to attempt and set them in the modal

Reach out if you'd like to discuss this.

@DHaussermann
Copy link

/update-branch

@mattermod
Copy link
Contributor

Error trying to update the PR.
Please do it manually.

@codecov-io
Copy link

codecov-io commented Jan 26, 2021

Codecov Report

Merging #583 (3c91261) into master (c8ab47b) will decrease coverage by 0.45%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #583      +/-   ##
==========================================
- Coverage   32.38%   31.92%   -0.46%     
==========================================
  Files          52       53       +1     
  Lines        5361     5437      +76     
==========================================
  Hits         1736     1736              
- Misses       3423     3499      +76     
  Partials      202      202              
Impacted Files Coverage Δ
server/autocomplete_search.go 0.00% <0.00%> (ø)
server/client.go 9.17% <0.00%> (-0.72%) ⬇️
server/client_cloud.go 0.00% <0.00%> (ø)
server/client_server.go 0.00% <0.00%> (ø)
server/http.go 25.83% <0.00%> (-0.51%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8ab47b...3c91261. Read the comment docs.

@mattermod
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

/cc @jasonblais @jfrerich @emilyacook

@mickmister
Copy link
Contributor Author

@mickmister I've taken another look at the issues here:

1. Post text is not added to issue description when the modal opens --> seems resolved

2A. Not all missing mandatory fields missing are shown on the bullet list in Mattermost post along with the link. It will only show one of them. --> seems introduced here does not repro on the 3.0.0 release

2B. Reporter is missing --> Not new. Separate issue opened

2C. Some of the fields I passed in via the modal are not shown in the Jira UI when I go to finish saving the issue but the rest are there. --> This seems only applicable to this PR. I see it with Components, Fix version, label, Checkboxes (not an exhaustive list) which are all fields where it was previously not possible to attempt and set them in the modal

Reach out if you'd like to discuss this.

@DHaussermann I think I need to use your Jira setup to reproduce 2a. and 2c.

@mickmister mickmister removed this from the v3.1.0 milestone Apr 26, 2021
@DHaussermann DHaussermann added this to the v3.1.0 milestone Jul 19, 2021
@DHaussermann
Copy link

Reviewed this PR with @mickmister

@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2021

Codecov Report

Merging #583 (1e72633) into master (16e0e5c) will decrease coverage by 0.45%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #583      +/-   ##
==========================================
- Coverage   35.16%   34.70%   -0.46%     
==========================================
  Files          51       52       +1     
  Lines        5827     5909      +82     
==========================================
+ Hits         2049     2051       +2     
- Misses       3573     3653      +80     
  Partials      205      205              
Impacted Files Coverage Δ
server/autocomplete_search.go 0.00% <0.00%> (ø)
server/client.go 8.93% <0.00%> (-0.70%) ⬇️
server/client_cloud.go 0.00% <0.00%> (ø)
server/client_server.go 0.00% <0.00%> (ø)
server/http.go 40.13% <0.00%> (-1.09%) ⬇️
server/subscribe.go 67.48% <0.00%> (+0.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 16e0e5c...1e72633. Read the comment docs.

@DHaussermann
Copy link

/update-branch

Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

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

Tested and passed

LGTM! please merge

@DHaussermann DHaussermann added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Aug 17, 2021
@mickmister mickmister merged commit 99a8136 into master Aug 17, 2021
@mickmister mickmister deleted the create-issue-assignee-and-labels branch August 17, 2021 15:54
@mickmister mickmister mentioned this pull request Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet