Giter VIP home page Giter VIP logo

Comments (5)

ajbalogh avatar ajbalogh commented on August 22, 2024

The append method was never fully implemented and was added to for a clone test case.
The original append method required a user to import a class, instantiate it and the append that instance which is counter to the intent of the library (no imports required by a user except for the single top level import).
Users of the original append method were advised that breaking changes were coming and to not use it.
The current refactored implementation is in use should not be commented out.

from openapiart.

ajbalogh avatar ajbalogh commented on August 22, 2024

The change to comment out the current append behavior should be reverted.

from openapiart.

Rangababu-R avatar Rangababu-R commented on August 22, 2024

sure Andy
@ashutshkumr, FYI

from openapiart.

ashutshkumr avatar ashutshkumr commented on August 22, 2024

I think both the behaviours are derived from valid use cases and we should decide whether to overload the meaning of append or provide methods with different names.

First usecase

f1, f2 = config.flows.flow(name='f1').flow(name='f2')
# when most configurations in f2 and f3 are common
f3 = f2.clone()
f3.name = 'f3'

f1, f2, f3 = config.flows.append(f3)

Second usecase

f1, f2 = config.flows.flow(name='f1').flow(name='f2')
# when most configurations in f2 and f3 are not common
f3 = config.flows.append(name='f3')

from openapiart.

ashutshkumr avatar ashutshkumr commented on August 22, 2024

As discussed, for second use case above, we'll introduce add.

f1, f2 = config.flows.flow(name='f1').flow(name='f2')
# when most configurations in f2 and f3 are not common
f3 = config.flows.add(name='f3')

from openapiart.

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.