Page MenuHomePhabricator

Fix an issue where "Import Columns" could fail on a board for a project with milestones
ClosedPublic

Authored by epriestley on Jan 16 2019, 2:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 8:33 PM
Unknown Object (File)
Fri, Mar 29, 6:13 AM
Unknown Object (File)
Mar 19 2024, 5:43 PM
Unknown Object (File)
Mar 19 2024, 3:58 PM
Unknown Object (File)
Feb 13 2024, 6:24 AM
Unknown Object (File)
Jan 6 2024, 12:31 AM
Unknown Object (File)
Dec 15 2023, 8:12 AM
Unknown Object (File)
Nov 30 2023, 5:09 AM
Subscribers
None

Details

Summary

See PHI1025. When you "Import Columns", we test if you're trying to import into a board that already has columns. However, this test is too broad (it incorrectly detects "proxy" columns for milestones as columns) and not user-friendly (it returns 400 instead of a readable error).

Correct these issues, and refine some of the logic around proxy columns.

Test Plan
  • Created a project, A.
  • Created a milestone under that project.
  • Imported another project's columns to A's workboard.
    • Before change: Unhelpful 400.
    • After change: import worked fine.
  • Also, hit the new error dialogs and read through them.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/applications/project/controller/PhabricatorProjectBoardImportController.php
57

"Source Workboard Has No Columns", if I understand this right.

This revision is now accepted and ready to land.Jan 17 2019, 12:03 AM
src/applications/project/controller/PhabricatorProjectBoardImportController.php
57

Ah, yeah, I think your phrasing is more clear. You just "targeted" this workboard by typing in the name, but it's not really self-evident whether "target" means "source" or "destination".

  • Use "Source" over "Target".
This revision was automatically updated to reflect the committed changes.