comment out the user/:id link for now

Summary: temporary fix for the broken link

Test Plan: look at the username in the main menu

Reviewers: rjmackay, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T893

Differential Revision: https://phabricator.ushahidi.com/D421
Fix sorting dropdowns

Summary: make sure the pagination is reset when updating filters, which sets the dropdowns to the correct state

Test Plan: try sorting posts by each type

Reviewers: rjmackay, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T891

Differential Revision: https://phabricator.ushahidi.com/D424
Fix the "unpublished" count in the Workspace menu, refs T894

Test Plan: Check the total in the workspace count. Published + unpublished = total.

Reviewers: dkobia, rjmackay, aMoniker

Reviewed By: aMoniker

Subscribers: vladimir

Maniphest Tasks: T894

Differential Revision: https://phabricator.ushahidi.com/D423
Fix Form Integer Fields

Summary: add integer type to Form model whitelist, Fixes T901

Test Plan: try adding and saving an integer field

Reviewers: rjmackay, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T901

Differential Revision: https://phabricator.ushahidi.com/D426
fix dragging new attributes among groups

Summary: the issue wasn't dragging between groups, but that new models weren't being saved immediately, so the drag would fail. Previously saved models could be dragged between groups without an issue. Not sure if the logic to not save models immediately was necessary... Fixes T895

Test Plan: try creating new attributes on forms then dragging them to new form groups, check that they're saved. Also check that this is possible with existing attributes.

Reviewers: rjmackay, dkobia, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T895

Differential Revision: https://phabricator.ushahidi.com/D425
add Post Integer Model

Summary: fixes the failing tests, refs T901

Test Plan: run tests, try saving integer fields in forms

Reviewers: rjmackay

Reviewed By: rjmackay

Subscribers: shadowhand

Maniphest Tasks: T901

Differential Revision: https://phabricator.ushahidi.com/D428
Move alertify calls to a reusable module

Summary:
- Create notify module
- Replace alertify calls in posts/tags/users lists
- Replace alertify calls in create/edit post modals

Test Plan:
Go to posts, tags or users list.
Try to delete items,
Try to publish/unpublish posts.
Test bulk actions too.
Edit a post, save the post - check notifications are as expected.

Reviewers: aMoniker, shadowhand

Reviewed By: shadowhand

Differential Revision: https://phabricator.ushahidi.com/D413
Fix jshint error on CreatePostView

Follow up to D413
Correct issues with setting roles on tags, fixes T892

Summary:
- fix definition and implementation of `doRolesExist`
- properly handle role diffing and clearing for tags
- add regression tests in behat
- add support for "the X property is empty" to behat

Test Plan:
```
bin/behat -f progress -c application/tests/behat.yml application/tests/features/api.tags.feature
```

Reviewers: dkobia, rjmackay, aMoniker

Reviewed By: rjmackay, aMoniker

Subscribers: vladimir

Maniphest Tasks: T892

Differential Revision: https://phabricator.ushahidi.com/D427
Correct reference to bulkRoleDrop, refs T835

Test Plan:
- go to settings/users
- click select all
- click role button
- click outside of role dropdown to close it
- see no errors in console

Reviewers: aMoniker, rjmackay

Reviewed By: rjmackay

Subscribers: vladimir, rjmackay

Maniphest Tasks: T835

Differential Revision: https://phabricator.ushahidi.com/D429
Enable auto-approval of scopes for the default OAuth client, fixes T904

Test Plan:
```
bin/phinx migrate -c application/phinx.php
```

- login using any user
- do not see scope approval page

Reviewers: rjmackay, aMoniker

Reviewed By: aMoniker

Subscribers: srutto, vladimir, dkobia

Maniphest Tasks: T904

Differential Revision: https://phabricator.ushahidi.com/D432
use ushahidi.dev for all tests
use sudo to bind to port 80