Skip to content

Commit

Permalink
Merge pull request #8 from ramperher/v1.3.1
Browse files Browse the repository at this point in the history
Get 7 latest versions of topic
  • Loading branch information
tonyskapunk authored Sep 3, 2024
2 parents 65c08a0 + f38c633 commit a86cee3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## v1

## v1.4.0

- Get last 7 versions of a topic if using "all-<TOPIC_TYPE>"

## v1.3.0

- Add wildcard "all-<TOPIC_TYPE>" for topics
Expand Down
4 changes: 2 additions & 2 deletions add-component
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function clean_up() {

trap clean_up EXIT

# Get the latest (last 6) versios of a topic
# Get the latest (last 7) versions of a topic
function get_topic_versions(){
local topic_type=${1^^}
declare -A products
Expand Down Expand Up @@ -37,7 +37,7 @@ function get_topic_versions(){
--where "status:active" \
--where "product_id:${product_id}" \
--where "name:${topic_type}*" |
jq -r '.topics[0:6][] | .name')
jq -r '.topics[0:7][] | .name')
)
echo ${all_versions[@]}
}
Expand Down

0 comments on commit a86cee3

Please sign in to comment.