Giter VIP home page Giter VIP logo

Comments (7)

mjy avatar mjy commented on September 20, 2024

This is increasingly being requested, and is becoming fairly high priority.

from taxonworks.

LocoDelAssembly avatar LocoDelAssembly commented on September 20, 2024

from taxonworks.

mjy avatar mjy commented on September 20, 2024

Are you now thinking about that approach as a replacement for the wirefame that was proposed?

from taxonworks.

LocoDelAssembly avatar LocoDelAssembly commented on September 20, 2024

from taxonworks.

mjy avatar mjy commented on September 20, 2024

Thinking quickly- I think we still need the form as we designed, but it's certainly not a bad step to do this first. We need to do the following:

  • Extend the invocation pattern soft_validate(:other_soft_validation_method, set: :some_set, resolutions: ['route_name_only_no_path_or_url_postifx', ... 'other_path']) (prioritize the first path, but here recognize that tasks may ultimately overlap, so we might give users different views that both solve the problem- likely don't use this pattern too much, but at least make it possible)
  • Extend SoftValidation (singular) with an accessor that stores an array of (see below) the resolution paths, set on initialization
  • Add a helper method(s) that generated the fully qualified path to resolution, and optional other paths if there are more based on some click through event

Soft validation code is quite (very?) well tested, so we should be able to extend it quickly. Do you want me to tackle it, or do you want to take a look (and maybe make general improvements)?

from taxonworks.

mjy avatar mjy commented on September 20, 2024

With f7ec60a you can make a soft validation resolvable by including resolution_with: __method__ in soft_validations.add() (note that method is literally what you use). It feels a little crude, and not as automagic as it could be, but might be workable, and gives us the flexibility to user/not resolution with a particular soft validation instance. Need to further document what's going on.

from taxonworks.

mjy avatar mjy commented on September 20, 2024

Going to close this, the existing solution provides resolvable soft validations, albeit with some extra weight. We can open an new issue when we need specific changes.

from taxonworks.

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.