US flag signifying that this is a United States Federal Government website An official website of the United States Government

Open Opportunities: Create Agency Admin User Role

Closed
Ended on 03/14/2016
Winning bid (Christian G. Warden): $2,399.00

Skills

Express, Node.js, and Sails.js

Description

Open Opportunities uses the open source sails.js MVC framework (Node.js / Express). This issue seeks to create a user role of "Agency Admin" that gives the user access to all of the admin pages in that agency. For this micro-purchase to be complete, the vendor will create an isAgencyAdmin property on the user, create a policy to regulate agency admin access, and create the ability for admins to promote users to an agency admin.

This will be used for future functionality on the agency data tag.

For more information please see the Github Issue

Auction rules

Registered users on micropurchase.18f.gov may bid to deliver the requirements in this auction. The lowest bidder at the time the auction closes shall receive the award. The awarded bidder shall have five business days to deliver the requirements. Upon successful completion of the requirements, 18F shall pay the winning bidder.

Also see our policies and guidelines page.

Acceptance Criteria

1.) Add “agency admin” property to user

A migration script to add isAgencyAdmin to the midas_user table

2.) Develop an “agency admin” policy

Given a user is an agency admin,

When they try to access admin pages,

Then they would only be able to access admin pages within their own agency. When an admin user visits the /adminadmin user management page, then browser should redirect to their agency admin page at admin/agencies/:agencyid with a placeholder page

(Looking at the isAdmin policy would provide an example of the updated policy)


3.) Enable an admin to create an “agency admin”

When an admin user visits the admin user management page,

Then they should be able to at any user to be an agency admin via a UI control

General acceptance criteria

B or better Code Climate grade and 90% or higher test coverage for all modifications. Tests adequately cover any new functionality. Tests run on Travis-CI and do not break the build. New features do not degrade accessibility (use pa11y/HTML Code Sniffer).

Resources

Deliverables

A single pull request submitted to https://github.com/18F/openopps-platform with clear, descriptive commits that satisfy all of the above acceptance criteria.

Bidder DUNS Amount Date (EST)
Christian G. Warden 080033077 $2,399.00 * March 14, 2016 01:59:58 PM EDT
Scott Construction, Inc. 144182268 $2,400.00 March 14, 2016 01:59:56 PM EDT
Christian G. Warden 080033077 $2,499.00 March 14, 2016 01:59:47 PM EDT
Joe Hand 080126095 $2,500.00 March 14, 2016 01:59:45 PM EDT
Christian G. Warden 080033077 $2,699.00 March 14, 2016 01:59:38 PM EDT
Scott Construction, Inc. 144182268 $2,700.00 March 14, 2016 01:59:26 PM EDT
Joe Hand 080126095 $2,777.00 March 14, 2016 01:59:14 PM EDT
Scott Construction, Inc. 144182268 $2,800.00 March 14, 2016 01:58:02 PM EDT
Joe Hand 080126095 $2,891.00 March 14, 2016 01:57:51 PM EDT
Christian G. Warden 080033077 $2,899.00 March 14, 2016 01:57:21 PM EDT
Scott Construction, Inc. 144182268 $2,900.00 March 14, 2016 12:23:59 PM EDT
Joe Hand 080126095 $3,000.00 March 14, 2016 11:35:09 AM EDT
Scott Construction, Inc. 144182268 $3,499.00 March 12, 2016 07:00:44 PM EST

* - winning bid

Bidding closed

Bidding for this auction closed on March 14, 2016 02:00:00 PM EDT.

Auction started at

March 10, 2016 01:00:00 PM EST

Auction ended at

March 14, 2016 02:00:00 PM EDT

Delivery deadline

March 21, 2016 02:00:00 PM EDT

Eligible vendors

SAM.gov only

Auction type:

Reverse (rules)

Paid at:

April 26, 2016 01:07:38 PM EDT

Accepted at:

March 21, 2016 02:00:00 PM EDT

View on GitHub