usdigitalresponse / usdr-gost

USDR-hosted grants management tools
http://grants.usdigitalresponse.org
Apache License 2.0
30 stars 21 forks source link

[STORY]: Data Migration from 'Status' to 'Follow + Note' #2961

Open ekhoffman opened 5 months ago

ekhoffman commented 5 months ago

Full User Story

As an organization, we would like to foster more collaboration between our users to allow for the sharing of knowledge and resources to empower them to more efficiently and effectively apply for the grants discovered on our platform.

As a grantseeker, I want to be able to easily share grants I’ve discovered with my team.

As a grantseeker, I want to be able to easily find collaborators who may be able to help me when preparing and applying for grants.

As a grantseeker, I want to be able to quickly see what grants my team members are interested in.

As an admin, I want to be able to easily surface and resolve issues and blockers my team is running into.

Why is this issue important?

As we make the move from 'Status' to 'Mark as Interested', we want to ensure that we don't lose any of the work our users have put in to record status so far. Additionally, if we can kickstart usage of this feature with previously entered information, we may be able to boost adoption.

Action Plan

Acceptance Criteria

Currently a status is set for an entire team, moving forward 'Following' will apply to an individual user.

  1. For the user who set the team status, we will migrate from 'Status' to 'Following' as outlined below.
    • If the current team status is 'Interested - Will Apply', we will set the user who selected this status to 'Following' for that grant and set the Note to 'Will Apply.'
    • If the current team status is 'Interested - Will Consider', we will set the user who selected this status to 'Following' and set the Note to 'Will Consider'.
    • If the current team status is 'Interested - Will Support', we will set the user who selected this status to 'Following' and set the Note to 'Will Support'.

None of this data migration should trigger any notifications

Implementation Details

ClaireValdivia commented 1 month ago

@amyewang based on the implementation plan, is it possible for initial work to be done for this issue, but then to actually run the migration closer to when we are launching the new feature? ideally we want this migration to be able to be run close to the launch so it migrates as much recent data as possible.

amyewang commented 1 month ago

@ClaireValdivia the second bullet point addresses this consistency issue - once the migration is run, we'll have the endpoint update the grant followers table as well; both of these changes should be deployed together. Once the feature is fully rolled out we can clean up all the team status stuff.