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

create integrations index if it does not exist and define the integrations document #1520

Closed
wants to merge 18 commits into from

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented May 2, 2023

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@derek-ho derek-ho changed the base branch from main to integrations May 2, 2023 19:04
@derek-ho derek-ho changed the title Integrations create integrations index if it does not exist and define the integrations document May 2, 2023
@Swiddis Swiddis mentioned this pull request May 2, 2023
6 tasks
@Swiddis
Copy link
Collaborator

Swiddis commented May 3, 2023

Is this being repurposed per #1521 or should we close it?

Swiddis and others added 10 commits May 3, 2023 15:39
* create integrations index if it does not exist

Signed-off-by: Derek Ho <[email protected]>

* Create Integration Index class

Signed-off-by: Simeon Widdis <[email protected]>

* Add integration object doc

Signed-off-by: Simeon Widdis <[email protected]>

* Remove manual creation in integration index

Signed-off-by: Simeon Widdis <[email protected]>

* Add Integration object

Signed-off-by: Simeon Widdis <[email protected]>

* Add tests for integration class

Signed-off-by: Simeon Widdis <[email protected]>

* Add WIP create integration workflow

Signed-off-by: Simeon Widdis <[email protected]>

* we fixed it

Signed-off-by: Derek Ho <[email protected]>

* Fix integration file names

Signed-off-by: Simeon Widdis <[email protected]>

* Fix typo file

Signed-off-by: Simeon Widdis <[email protected]>

---------

Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Co-authored-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
@derek-ho derek-ho marked this pull request as ready for review May 3, 2023 21:41
@Swiddis Swiddis added the enhancement New feature or request label May 3, 2023
Copy link
Member

@YANG-DB YANG-DB left a comment

Choose a reason for hiding this comment

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

I've added few comments - lets review them after we conclude our demo and think again on the design

import org.opensearch.observability.util.logger

/**
* Application main data class.
Copy link
Member

Choose a reason for hiding this comment

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

the javadoc is not relevant to this example...

import org.opensearch.observability.util.logger

/**
* Application main data class.
Copy link
Member

Choose a reason for hiding this comment

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

javadoc here again not representing the content ...

Copy link
Member

Choose a reason for hiding this comment

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

why is this file here ?

class CreateIntegrationRequest : ActionRequest, ToXContentObject {
val objectId: String?
val type: IntegrationObjectType
val objectData: BaseObjectData?
Copy link
Member

Choose a reason for hiding this comment

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

why doesn’t this request accept a specific IntegrationRequest class ?

import org.opensearch.common.io.stream.Writeable
import org.opensearch.core.xcontent.XContentParser

internal object IntegrationObjectDataProperties {
Copy link
Member

Choose a reason for hiding this comment

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

missing the integration actual fields - see here

val tenant: String,
val access: List<String>, // "User:user", "Role:sample_role", "BERole:sample_backend_role"
val type: IntegrationObjectType,
val objectData: BaseObjectData?
Copy link
Member

Choose a reason for hiding this comment

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

why not having the concrete ObjectDataProperties here?

@derek-ho
Copy link
Collaborator Author

derek-ho commented Aug 2, 2023

Closing since it moved to the front end

@derek-ho derek-ho closed this Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants