Giter Site home page Giter Site logo

Comments (9)

swcurran avatar swcurran commented on June 1, 2024 1

@TimoGlastra - @ianco is going to make this change tomorrow in the Test Harness (calling the API) and in the python backchannel used by ACA-Py and VCX. Once that is done, we're assuming you can make a comparable update in your work, and ideally produce a Swagger file that defines the interface. The expectation is that it is just a half day effort for what Ian is going to do - not a big deal.

It's a little weird since each backchannel will be defining the same API and will be able to generate the Swagger definition. The single Test Harness will be calling the interface. So basically, we need a "API-first" development mode where we update a common swagger definition, and then use that to define the routes for each backchannel. We'll think about that as we move forward.

from aries-agent-test-harness.

swcurran avatar swcurran commented on June 1, 2024

Thanks @TimoGlastra . Over to @ianco and @nodlesh for their thoughts.

My leaning is that this is the right way to go. It makes the API much more transparent, easier on devs and we can version the API as another mechanism to control what tests can be executed when using different TAs (Test Agents).

A question is the effort to switch. Ian, this seems like something you could knock off fairly easily for the Test Harness and at least in ACA-Py. Not so sure about VCX and Pico.

from aries-agent-test-harness.

ianco avatar ianco commented on June 1, 2024

I agree this is a good suggestion. It would not be a huge effort to convert the aca-py or vcx backchannels.

(A bigger task is that the vcx backchannel needs to be brought up to the latest codebase, it is based on a 6-month-old version of vcx. The Pico backchannel was never fully built out (more of a POC) and Pico has also been rewritten over the past 6 months.)

from aries-agent-test-harness.

swcurran avatar swcurran commented on June 1, 2024

Sounds good. @nodlesh and @ianco -- let's discuss at the standup (or after) tomorrow about how to get there.

from aries-agent-test-harness.

nodlesh avatar nodlesh commented on June 1, 2024

I agree as well; This would be a better cleaner approach. Though I would suggest we leave the old way in as well, temporarily, to support what is already there. We can migrate older backchannels to the new way as it becomes priority. We could also leave the old way there permanently was a way to allow calling into a specific backchannel to do operations not necessarily supported by other backchannels.

from aries-agent-test-harness.

swcurran avatar swcurran commented on June 1, 2024

Let's figure out a migration plan.

@TimoGlastra -- assuming we do the change to the Harness, what is the impact on what you have already done? I'm guessing it will be minor?

from aries-agent-test-harness.

TimoGlastra avatar TimoGlastra commented on June 1, 2024

Awesome. This will indeed be a minor change for the .NET backchannel (think minutes). Once @ianco has made the necessary changes i'll update the endpoints. I'll also create the swagger definition while implementing the different operations.

How are topics without named operations going to be handled (e.g. the schema topic only has one operation)? My preference would be to give every action an operation - even if the topic only has one operation. For consistency and future proofing.

@swcurran It's indeed a bit weird and different than most APIs - which have multiple clients and a single server.

from aries-agent-test-harness.

swcurran avatar swcurran commented on June 1, 2024

@TimoGlastra -- this is done now -- #69 and merged. This will break your stuff, but easily fixed, right?

Onward!

from aries-agent-test-harness.

TimoGlastra avatar TimoGlastra commented on June 1, 2024

Great! Easily fixed indeed

from aries-agent-test-harness.

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.