Page MenuHomePhabricator

Workboard - Make the edit icons on the columns actually work
ClosedPublic

Authored by mikn on Jan 12 2014, 1:58 AM.
Tags
None
Referenced Files
F14379591: D7933.id17952.diff
Sat, Dec 21, 3:02 AM
F14379241: D7933.id17953.diff
Sat, Dec 21, 2:42 AM
F14376522: D7933.diff
Fri, Dec 20, 11:54 PM
Unknown Object (File)
Fri, Dec 13, 11:31 AM
Unknown Object (File)
Wed, Dec 11, 6:23 AM
Unknown Object (File)
Tue, Nov 26, 6:07 PM
Unknown Object (File)
Fri, Nov 22, 11:29 AM
Unknown Object (File)
Nov 19 2024, 12:36 AM

Details

Summary

Made the edit path of the Edit controller work (before only create worked), also added in the link for the cog icon to actually land you on the edit page for the correct column. Some cleanup too. *cough*

Test Plan

Click on gear
Look at fancy title you are about to edit
Change it
Enjoy changed title

Diff Detail

Branch
col_edit
Lint
Lint Passed
Unit
Tests Passed

Event Timeline

A couple of minor inlines, this looks good otherwise.

src/applications/project/controller/PhabricatorProjectBoardController.php
46–51

This probably derps for projects with no columns yet, but that's fine.

61

For consistency, include the trailing "/" in this URI. We'll add it automatically if it's omitted, but Phabricator URIs generally end with a "/".

src/applications/project/controller/PhabricatorProjectBoardEditController.php
38–39
  • Use requireCapabilities() to require CAN_EDIT.
  • Add an if (!$column) { return 404; } check.
73–78

This should only be for new columns -- editing a column shouldn't change its sequence number.

Good eye, thank you. :)

src/applications/project/controller/PhabricatorProjectBoardEditController.php
38–39

Thank you!

73–78

Oh, god. I apologise for that. Embarassing!

mikn updated this revision to Unknown Object (????).Jan 12 2014, 2:13 AM
  • Mending some brainfarts.

Cool, thanks! I'll take a shot at the JS shortly.

Closed by commit rP10ea1dd74900 (authored by @mikn, committed by @epriestley).