amida-tech / greyscale

Indaba - Turn knowledge into data :earth_africa: :earth_asia: :earth_americas:
http://indaba.amida-tech.com
Other
8 stars 4 forks source link

Feature/inba 911 jf order projects by last updated #508

Closed jmfadeley closed 5 years ago

jmfadeley commented 5 years ago

Postgres decided out of the blue to shake up how it returns ordering for Stages inside a project. Normally it follows per the creation date of rows but for some reason decided not to today. We're taking steps to reduce the risk on our system.

What does this PR do?

Related JIRA tickets:

Did the user.integration, discussion.integration and task.integration tests pass? Test can be run with:

node_modules/.bin/mocha test/user.integration.js test/discussion.integration.js test/task.integration.js --bail -t 10000

How should this be manually tested?

Create or use an existing project that has several stages, preferably up to 5 or 6. (You are capped at 4 when using the Project Wizard, but can go beyond this limit on the Project Management page). Confirm that they appear in order. Then go into your backend and try switching the order at the WorkflowSteps table. See the screenshot for how. You may want to put your order back when you are finished.

Also, please check that the Projects page for admin users lists and confirm that it is now ordered from latest to last updated.

Background/Context

Screenshots (if appropriate):

image