Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sabinem
Copy link
Contributor

@sabinem sabinem commented Apr 22, 2024

This PR makes the following changes:

  • component versions in ODTP should correspond to the tags on their github repos. Therefore only version names are taken, where the tags can be found on github.
  • repo url: Additionally the url is taken from github for a component. This avoids that the component will be registered multiple time
  • datetime.utcnow() is deprecated and is been replaced by datetime.now(timezone.utc)
  • Fix settings with boolean values: eval must be used instead of bool and try except block is added for making settings errors better understandable

@sabinem sabinem force-pushed the component-version-instead-of-commits branch from c8266b8 to f3acfe5 Compare April 22, 2024 13:07
@sabinem sabinem changed the title Component version instead of commits Draft: Component version instead of commits Apr 22, 2024
@sabinem sabinem force-pushed the component-version-instead-of-commits branch from cd863a3 to ba4ff8a Compare April 22, 2024 20:34
@sabinem sabinem changed the title Draft: Component version instead of commits Component version instead of commits Apr 22, 2024
component versions in ODTP should correspond to the tags on their
github repos. Therefore only version names are taken, where the
tags can be found on github.

Additionally the url is taken from github for a component. This
avoids that the component will be registered multiple time

datetime.utcnow() is deprecated and is been replaced by
datetime.now(timezone.utc)

make settings safer by putting it into a try except block and use
`eval` instead of `bool` to evaluate boolean settings
@sabinem sabinem force-pushed the component-version-instead-of-commits branch from ba4ff8a to a7b923f Compare April 22, 2024 20:43
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the ODTP_DASHBOARD_RELOAD variable isn't being reused elsewhere in the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sabrinaossey: good catch. I have added a commit, so the setting will be used again in the dashboard run.

@sabrinaossey sabrinaossey merged commit 43235cf into develop Apr 23, 2024
@sabinem sabinem deleted the component-version-instead-of-commits branch May 7, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants