FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ROX-18155: pg generic store: Delete by janisz · Pull Request #6775 · stackrox/stackrox · GitHub

ROX-18155: pg generic store: Delete - #6775

Merged
janisz merged 1 commit into
masterfrom
master-janisz/06-30-ROX-18155_pg_generic_store_Delete
Jul 7, 2023
Merged

ROX-18155: pg generic store: Delete#6775
janisz merged 1 commit into
masterfrom
master-janisz/06-30-ROX-18155_pg_generic_store_Delete

Conversation

janisz commented Jun 30, 2023

Copy link
Copy Markdown
Contributor

Description

A detailed explanation of the changes in your PR.

Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added
  • Evaluated and added CHANGELOG entry if required
  • Determined and documented upgrade steps
  • Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.

In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

ghost commented Jun 30, 2023
edited by ghost
Loading

Copy link
Copy Markdown

Images are ready for the commit at f124f77.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.1.x-344-gf124f77312.

janisz mentioned this pull request Jun 30, 2023
5 tasks
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from 45ea17e to 6766f93 Compare July 3, 2023 15:47
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from 83e4aeb to 6b92e68 Compare July 3, 2023 15:48
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from 6766f93 to 2e100d1 Compare July 3, 2023 16:03
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from 6b92e68 to a9a6a17 Compare July 3, 2023 16:03
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from 2e100d1 to ddfc8a1 Compare July 4, 2023 13:00
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from a9a6a17 to 514173e Compare July 4, 2023 13:00
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from ddfc8a1 to 3f6dff3 Compare July 4, 2023 13:57
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from 514173e to c91757f Compare July 4, 2023 13:58
func (s *GenericStore[T, PT]) Delete(ctx context.Context, id string) error {
q := search.NewQueryBuilder().AddDocIDs(id).ProtoQuery()
return s.DeleteByQuery(ctx, q)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice simplification and code reduction :o)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

On the other hand it prevents us from tracking simple queries from complicated ones

janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from 3f6dff3 to f8c2863 Compare July 6, 2023 11:02
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from c91757f to d4aaeaa Compare July 6, 2023 11:02
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from f8c2863 to 8eda922 Compare July 6, 2023 14:16
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from d4aaeaa to 1a63804 Compare July 6, 2023 14:16
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from 8eda922 to c9fa819 Compare July 6, 2023 15:36
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from 1a63804 to 5c5489f Compare July 6, 2023 15:36
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from c9fa819 to 182c002 Compare July 6, 2023 15:47
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from 5c5489f to 08f1a51 Compare July 6, 2023 15:47
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from 182c002 to 67da9dd Compare July 7, 2023 12:00
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from 08f1a51 to 9faa773 Compare July 7, 2023 12:00
janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery branch from 67da9dd to fb141f1 Compare July 7, 2023 15:33
Base automatically changed from master-janisz/06-30-ROX-18155_pg_generic_store_DeleteByQuery to master July 7, 2023 17:32

janisz commented Jul 7, 2023

Copy link
Copy Markdown
Contributor Author

Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.

janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch from 9faa773 to f124f77 Compare July 7, 2023 17:33

openshift-ci Bot commented Jul 7, 2023

Copy link
Copy Markdown

@janisz: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocp-4-13-operator-e2e-tests 9faa773 link false /test ocp-4-13-operator-e2e-tests
ci/prow/ocp-4-10-qa-e2e-tests f124f77 link false /test ocp-4-10-qa-e2e-tests
ci/prow/gke-sensor-integration-tests f124f77 link false /test gke-sensor-integration-tests
ci/prow/ocp-4-13-core-bpf-qa-e2e-tests f124f77 link false /test ocp-4-13-core-bpf-qa-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

janisz merged commit dbe60c2 into master Jul 7, 2023
janisz deleted the master-janisz/06-30-ROX-18155_pg_generic_store_Delete branch July 7, 2023 19:24

janisz commented Jul 7, 2023

Copy link
Copy Markdown
Contributor Author

@janisz merged this pull request with Graphite.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL