18F / projects

[WIP] A collection of our projects, past and present
Other
9 stars 3 forks source link

Add MVP fields to models. #5

Closed toolness closed 8 years ago

toolness commented 8 years ago

This is a work-in-progress attempt to add the MVP model fields as specified by @melodykramer.

Note: I added django-test-without-migrations to make it possible to experiment with models and run tests without having to generate new migrations every time one changes a model. This can be enabled by running python manage.py test --nomigrations.

Still to be done:

melodykramer commented 8 years ago

For the links, I recommend just one, and then having the rest in the README.

The Tock ID is unique for each engagement - it's the field that we use internally for billing.

Will look at the help test.

Yes, some of the fields should be able to be left blank. Not every project has a link or a GitHub page. Every project should have a name, description, and impact statement....

toolness commented 8 years ago

Awesome!

I assume Tock ID should also be able to be left blank, too? Since a project might be so new that it doesn't yet have a Tock ID?

toolness commented 8 years ago

Oh, I just realized that another alternative to "live site URL" is to simply pull that from GitHub as well, since every repo can have a URL associated with it:

site-link

This won't work if the project has a live site URL but doesn't have a GitHub repo, though.

For that matter, I guess the tagline can be pulled from GitHub too, if we want to keep things DRY and the project has a repository...

brendansudol commented 8 years ago

I'd prefer us just explicitly adding these fields ourselves vs fetching from GitHub and relying on those being right and up to date and want we want to show

brendansudol commented 8 years ago

Yes, tock_id should be nullable

brendansudol commented 8 years ago

Totally agree with your approach on Markdown (storing raw and converting on render)!

batemapf commented 8 years ago

i disagree with https://github.com/18F/projects/pull/5#issuecomment-218799353 re: nullable tock_id. if it is something we are working on, it should be in tock and we should be tracking effort against it. if it is so new that no work has been performed on it, then it probably shouldn't be showing up here.

melodykramer commented 8 years ago

There will be things here that are not in Tock. Thinking of something like Bronto, which is a tool we created but was not an IAA or billable project.

batemapf commented 8 years ago

if it is something we are working on, regardless of billability, it should be in tock. goes to see if this project project is in tock :-/

batemapf commented 8 years ago

ah, Dashboard looks like the ticket.

brendansudol commented 8 years ago

i think it still needs to be nullable even if everything will eventually get in tock (for the case when we add a new project and before it syncs with tock which then triggers a new tock_id which would get picked up in /projects)

batemapf commented 8 years ago

ah good point @brendansudol. if workflow is projects ---> tock for establishing new projects then 👍

brendansudol commented 8 years ago

after the conflicts are resolved, this PR LGTM -- happy to punt on the github URL validation bit

toolness commented 8 years ago

Woot, thanks @brendansudol--just merged and added the db migration. Will commit as soon as travis is happy.

brendansudol commented 8 years ago

🎉