Skip to content

WIP: Related issues FE

Eric Eastwood requested to merge 2001-related-issues-fe into 2001-related-issues

What does this MR do?

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

Todo

  • Wait for return of all related issues on every interaction, POST, DELETE
  • Figure out the transient 422 Unprocessable Entity -> InvalidAuthenticityToken when interacting with some related issues endpoints
    • X-CSRF-Token is in place and vue_resource_interceptor definately fires
    • It seems like the CSRF token is getting invalidated somehow
  • Wait for endpoint for fetching issue info by reference or URL
  • Show errors from requests in UI
  • Add tests
    • related_issues_root
    • related_issues_service
    • related_issues_store
    • Some overview rspec tests

Notes

RelatedIssue.create!(
  issue: Issue.where(
    iid: 40,
    project_id: Project.where(namespace_id: Group.where(path: "gitlab-org")[0].id, path: "gitlab-ce")[0].id
  )[0],
  related_issue: Issue.where(
    iid: 41,
    project_id: Project.where(namespace_id: Group.where(path: "gitlab-org")[0].id, path: "gitlab-ce")[0].id
  )[0]
)

What are the relevant issue numbers?

Closes #2001 (closed)

Merge request reports