Coder Social home page Coder Social logo

Add a "test" flag to plans about roadmap HOT 7 CLOSED

dmproadmap avatar dmproadmap commented on May 31, 2024
Add a "test" flag to plans

from roadmap.

Comments (7)

briri avatar briri commented on May 31, 2024

Decided to store 'is_test' and 'is_public' as separate boolean values to the projects table rather than as a value from a separate 'visibility_types' table like we have in the DMPTool codebase.

A plan can have the following visibilities:

  • Test - visible only to the owner and specified collaborators
  • Public - the plan will be available on the new Public DMPs page and accessible/exportable by anyone
  • Organisational - the plan is neither Test or Public and is available to the owner, collaborators and admins

I'm handling the logic to prevent a plan from being marked as both public and test at the same time in the model and UI code.

Took an initial stab at the UX workflow for this and the new 'test' flag (see screenshots).
screen shot 2017-01-03 at 1 46 05 pm
screen shot 2017-01-03 at 1 46 28 pm
screen shot 2017-01-03 at 1 46 44 pm

from roadmap.

briri avatar briri commented on May 31, 2024

Decided to switch to a visibilities table after discussion with @stephaniesimms. There are some nuances between making a plan 'test' and 'private' so we will need 4 visibility settings: test, private, organisational (default) and public

from roadmap.

briri avatar briri commented on May 31, 2024

related to #84

from roadmap.

stephaniesimms avatar stephaniesimms commented on May 31, 2024

adding reference to Pivotal ticket for test flags: https://www.pivotaltracker.com/story/show/120867001

Objective is to mark test plans to separate them from usage stats. Possible ways to do this:

  • add button/check box in Create plan workflow to mark test plans
  • add button on Confirm plan details page (currently Create plan, Cancel options)
  • test plan can be copied as a real plan or reclassified on My Plans page
  • test plan cannot be exported

from roadmap.

briri avatar briri commented on May 31, 2024

Added test checkbox to view plans table. Only owners and coowners can change whether or not a plan is designated as a test. Making a plan 'test' will automatically change the visibility to 'Private' in the UI (the test flag is treated the same as the other visibilities in the database)
screen shot 2017-06-13 at 10 38 54 am

Also added the new 'create test plan' link which will bring the user to the create plan page.
I also added a configurable default visibility setting to the application.rb file. A new plan is automatically set to 'private' visibility. This can be overriden though for each installation.
When the user clicks 'create test plan' they will see the following:
screen shot 2017-06-13 at 11 09 45 am
screen shot 2017-06-13 at 11 15 56 am

from roadmap.

stephaniesimms avatar stephaniesimms commented on May 31, 2024

test flag functionality works as expected. I can either create a Test plan at the outset, or tick the "Test" box in My plans or Plan details pages, which defaults the plan to private visibility. moving this issue along.

from roadmap.

sjDCC avatar sjDCC commented on May 31, 2024

Looks good. Can create a test plan from scratch and easily adjust setting in table. This seems to autosave as just need to check box and entry is retained, which fits well with how we're implementing it elsewhere. Good to close out.

from roadmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.