kmKowdz / BBCI-Prototype

A prototype for my Blockchain-based Continuous Integration system.
Apache License 2.0
1 stars 0 forks source link

modify parameters for set action #4

Closed kmKowdz closed 3 years ago

kmKowdz commented 3 years ago

change the parameters from name, value to build, status

kmKowdz commented 3 years ago

there was a problem re: execution of set. the dict command is called from the _do_set function which is responsible for assigning the value to the name variable, this poses a problem since the dict function, which is a built-in function btw in python, does not accept a str to str assignment. image image

kmKowdz commented 3 years ago

@kmKowdz , can we adapt a function from xo? 🤔

kmKowdz commented 3 years ago

@kmKowdz , can we adapt a function from xo? 🤔

yeah, sure. we can use the take action but there's an extra step. there is a separate function for encoding.

kmKowdz commented 3 years ago

mapping of xo objects with intkey:

mapping of intkey objects with jenkins objects:

mapping of xo components with jenkins:

kmKowdz commented 3 years ago

mapping of xo objects with intkey:

  • name = name
  • take = set
  • space = value

mapping of intkey objects with jenkins objects:

  • name = build
  • value = status

the following parameters should be included:

kmKowdz commented 3 years ago

xo's method for processing the payload and updating states are quite different and includes additional class--the game. thinking if should I adapt xo's method instead 🤔 but first I need to map xo game class with the jenkins report..

kmKowdz commented 3 years ago

xo's method for processing the payload and updating states are quite different and includes additional class--the game. thinking if should I adapt xo's method instead 🤔 but first I need to map xo game class with the jenkins report..

i think xo's format is better in terms of capturing the object that we want to work on from jenkins. I suggest that the Game class be converted to an instance of a Project in jenkins and the delete function be converted to recording the deletion of a project from jenkins instead of deleting the project from blockchain.

also, we need to know if it's possible to get the following information from jenkins and whether our project class captures the information of different projects in jenkins (e.g. freestyle project, multibranch pipeline, etc.).

kmKowdz commented 3 years ago

xo's method for processing the payload and updating states are quite different and includes additional class--the game. thinking if should I adapt xo's method instead 🤔 but first I need to map xo game class with the jenkins report..

i think xo's format is better in terms of capturing the object that we want to work on from jenkins. I suggest that the Game class be converted to an instance of a Project in jenkins and the delete function be converted to recording the deletion of a project from jenkins instead of deleting the project from blockchain.

also, we need to know if it's possible to get the following information from jenkins and whether our project class captures the information of different projects in jenkins (e.g. freestyle project, multibranch pipeline, etc.).

  • Project
  • Branch
  • Build No.
  • Date and Timestamp
  • Status

since we are working on a prototype, we can limit our project for multibranch pipeline for now and expand later once we collected feedback from the panelist. how's that?

kmKowdz commented 3 years ago

in the meantime, for the sake of testing if we can successfully store and retrieve inputs, let's limit the property of the "Game" class to:

where name is the project name and status be either failure or success.

kmKowdz commented 3 years ago

i conducted a run through with the set function have have figured that we can't use the function since it uses dict, which keeps a key-value pair.. in our application we need a class to represent the jenkins object. thus, i am closing this issue since the intkey set function is not suitable for the current application..