Giter Club home page Giter Club logo

issue-states's People

Contributors

neithernut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

matthiasbeyer

issue-states's Issues

Condition format

I think a format for conditions should be specified. Of course, the library should also gain support for such a format (how exactly the interface will look like is another interesting question which I do not want to discuss here).

The original idea was to have the user declare a suitable format for conditions. The rationale behind it was that specifying a format may be too restrictive. However, specifying a format would clearly improve (potential) interoperability of tools and software making use of issue states. It would also avoid a situation where a user or admin would have to "learn" a new condition format for every new tool.

git-dit already has a format for conditions. It allows checking for:

  • presence of a piece of metadata (just the name of the metadata)
  • presence + exact match of value (<name>=<value>)
  • presence + contains substring (<name>~<value>)
  • negations of any of the above (!<condition>)

The supported datatypes so far are strings and lists of strings. A longish-term plan included adding more operators (e.g. < and > for numerical or partially ordered values).

One option would be to just take this format, add a bunch of operators, and include it in issue-states. But I'm not sure. Maybe the format could be improved.

@MichaelMure, given that git-bug is a potential user, do you have any ideas or preferences?

Example of set or rules ?

Hi @neithernut

This is quite interesting. Do you have an example of set of rules that could be used ?

It would be subjective and depend on the actual features that the tracker support but it would help to show the benefits of this solution.

One obvious benefits is that it would allow the end user to define their own rules and adapt the tracker to their workflow instead of the other way around.

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.