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

Http object type mb #146

Merged
merged 36 commits into from
Sep 11, 2024
Merged

Http object type mb #146

merged 36 commits into from
Sep 11, 2024

Conversation

afek854
Copy link
Contributor

@afek854 afek854 commented Sep 9, 2024

Sorry, we do not accept changes directly against this repository. Please see
CONTRIBUTING.md for information on where and how to contribute instead.

@afek854 afek854 force-pushed the http-object-type-mb branch from 1c77ebd to a499d26 Compare September 9, 2024 10:55
Copy link

github-actions bot commented Sep 9, 2024

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: failure

Copy link

github-actions bot commented Sep 9, 2024

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: failure

Copy link
Contributor

@matthyx matthyx left a comment

Choose a reason for hiding this comment

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

few nits for the moment... I have to take some time to play with the algorith

pkg/apis/softwarecomposition/v1beta1/types.go Outdated Show resolved Hide resolved
pkg/apis/softwarecomposition/v1beta1/types.go Show resolved Hide resolved
pkg/registry/file/applicationprofile_processor.go Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Sep 9, 2024

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: failure

@afek854 afek854 force-pushed the http-object-type-mb branch from 963630c to 259a619 Compare September 10, 2024 08:17
@afek854 afek854 force-pushed the http-object-type-mb branch from 259a619 to 59db408 Compare September 10, 2024 08:20
Copy link

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: failure

Copy link
Contributor

@matthyx matthyx left a comment

Choose a reason for hiding this comment

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

let's merge and address these few comments after

return existing
}

func convertPointerToValueSlice(m []*types.HTTPEndpoint) []types.HTTPEndpoint {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can refactor without this, let's leave it for when you generalize

@@ -49,7 +49,7 @@ func (a ApplicationProfileProcessor) PreSave(object runtime.Object) error {
}

func deflateApplicationProfileContainer(container softwarecomposition.ApplicationProfileContainer) softwarecomposition.ApplicationProfileContainer {
endpoints, err := dynamicpathdetector.AnalyzeEndpoints(&container.Endpoints, dynamicpathdetector.NewPathAnalyzer())
endpoints, err := dynamicpathdetector.AnalyzeEndpoints(&container.Endpoints, dynamicpathdetector.NewPathAnalyzer(100))
Copy link
Contributor

Choose a reason for hiding this comment

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

later: use constant

@matthyx
Copy link
Contributor

matthyx commented Sep 11, 2024

@afek854 use squash and merge pls

@afek854 afek854 merged commit 1c86256 into main Sep 11, 2024
6 checks passed
@matthyx matthyx deleted the http-object-type-mb branch September 11, 2024 06:20
afek854 added a commit that referenced this pull request Sep 12, 2024
* WIP: http endpoints types

* add generated code

Signed-off-by: Matthias Bertschy <[email protected]>

* WIP: added NetworkDirection

* bump code generation script

Signed-off-by: Matthias Bertschy <[email protected]>

* WIP: Fixed generation script

* WIP: Removed HTTPEndpoint deepcopy

* WIP: Removed HTTPEndpoint from softwarecomposition client

* WIP: Fixed generated files

* WIP: Fixed types.go

* WIP: Removed NetworkDirection

* WIP: Removed logs

* WIP: Move to string

* WIP: Convert to string

* WIP: Added consts

* WIP: Multiple header values

* WIP: Added Path & URL analyzing

* WIP: removed debug logs

* WIP: Handle duplicates url's

* Http object type

* add profobufs and fixes

Signed-off-by: Matthias Bertschy <[email protected]>

* WIP: Fixed typos & added benchmark tests

* Added coverage & benchmark tests

* WIP: Fixed bugs due tests

* WIP: Added extra and tests

* WIP: Added tests for extra

* WIP: Removed Extra field

* WIP: Code regeneration

* WIP: Remove omitempty for bool valuie

* WIP: Headers into RawMessage

* WIP: Added GetHeaders

* WIP: tidy

* Removed typo & change log level

* Added tests for endpoints

* WIP: Added comment

* Fixed application profile tests

---------

Signed-off-by: Matthias Bertschy <[email protected]>
Co-authored-by: Matthias Bertschy <[email protected]>
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.

2 participants