Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: merge-json doesn't merge properly #67

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

johnbieren
Copy link
Collaborator

[jbieren@jbieren utils]$ echo $json1
{"data":{"foo":"bar"}}
[jbieren@jbieren utils]$ echo $json2
{"data":{"one":"two"}}
[jbieren@jbieren utils]$ echo $json3
{"data":{"one":"three"}}
[jbieren@jbieren utils]$ ./merge-json $json1 $json2
{"data":{"foo":"bar","one":"two"}}
[jbieren@jbieren utils]$ ./merge-json $json2 $json3
{"data":{"one":"three"}}

without the fix, it was like this

[jbieren@jbieren utils]$ ./merge-json $json1 $json2
{"data":{"one":"two"}}

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
Copy link
Contributor

@mmalina mmalina left a comment

Choose a reason for hiding this comment

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

Nice!

@johnbieren johnbieren merged commit 970ae76 into konflux-ci:main Oct 16, 2023
5 checks passed
@johnbieren johnbieren deleted the fixmerge branch October 16, 2023 11:59
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 16, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 17, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 17, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 17, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 17, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 17, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 17, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to johnbieren/release-service-catalog that referenced this pull request Oct 17, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
johnbieren added a commit to konflux-ci/release-service-catalog that referenced this pull request Oct 18, 2023
Bump the image used in the collect-data task to get a bug fix in the
merge-json script
(konflux-ci/release-service-utils#67) and
a change to get-resource util to return {} instead of the empty string
if the json key doesn't exist
(konflux-ci/release-service-utils#68).
Also removes all references to extraData in the task
and replaces it with data to align with recent API changes.

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
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.

4 participants