Page MenuHomePhabricator

Nuance - federate out the design of NuanceSource via NuanceSourceDefinition
ClosedPublic

Authored by btrahan on Nov 14 2013, 1:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 1:07 PM
Unknown Object (File)
Fri, Dec 13, 6:01 PM
Unknown Object (File)
Thu, Dec 12, 4:58 PM
Unknown Object (File)
Sun, Dec 8, 10:48 AM
Unknown Object (File)
Wed, Dec 4, 11:47 AM
Unknown Object (File)
Fri, Nov 29, 9:32 PM
Unknown Object (File)
Fri, Nov 29, 5:39 PM
Unknown Object (File)
Nov 26 2024, 12:12 PM

Details

Summary

...and get the basic edit flow "working" for a new NuanceSourceDefinition - the Phabricator Form. ...and fix a dumb bug in the query class so when you redirect to the view page / try to edit an existing NuanceSource you don't fatal.

Test Plan

played around with the edit form and it worked!

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Minor stuff inline.

src/applications/nuance/editor/NuanceSourceEditor.php
9โ€“10

Consider just rendering TYPE_NAME as "alincoln created this source." if the old value is empty, instead of having a separate CREATE transaction.

src/applications/nuance/query/NuanceSourceQuery.php
38

haha oops

src/applications/nuance/source/NuanceSourceDefinition.php
96โ€“101

Maybe consider strings instead of numbers for the constants, we'll probably never change it if we don't now.

104

"updat" typo

112

I don't understand what this method does from the comment. I'd expect scour() to be like a delete/wipe/reset of some kind.

Is this scour like "search", not scour like "clean"?

Maybe scourForNewItems or something?

114

Consider load vs get for explictness.

227

In theory we can do validation in the Editor now, although that might be more work.

btrahan updated this revision to Unknown Object (????).Nov 20 2013, 9:35 PM
  • change source type from int to string
  • address other feedback too
  • add some code to the view controller so you can see this stuff just a wee bit more