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

Removing oracle driver and associated tests #3381

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

fjtirado
Copy link
Contributor

@fjtirado fjtirado commented Jan 29, 2024

Removing oracle jdbc driver from kogito_test_utils because of legal issues
Merge with apache/incubator-kie-kogito-apps#1971

@fjtirado fjtirado marked this pull request as draft January 29, 2024 14:27
@fjtirado fjtirado force-pushed the oracle_removal_proposal branch 6 times, most recently from 6350255 to 76a0197 Compare January 29, 2024 19:25
@fjtirado fjtirado marked this pull request as ready for review January 30, 2024 18:39
Copy link
Member

@porcelli porcelli left a comment

Choose a reason for hiding this comment

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

I think there are still some left over oracle references that I don't think it makes sense to carry over like DB-scripts and the Enum with explict reference to it.

@ricardozanini
Copy link
Member

@porcelli but these references are not linked to the actual driver jar. We can't even mention oracle?

@porcelli
Copy link
Member

porcelli commented Feb 6, 2024

no problem to mention Oracle; I just find it misleading

@fjtirado
Copy link
Contributor Author

fjtirado commented Feb 6, 2024

@porcelli Which else do you propose to remove?. Can you please point the place for the scripts? I was not aware of its existance, I just change the minimal to get rid of the driver (there are not specific test for Oracle in runtimes).

@fjtirado
Copy link
Contributor Author

fjtirado commented Feb 6, 2024

@porcelli About the enum (which is, as expected, not used anywhere), it might be useful to keep it for people that actually use Oracle with out stuff. Same rationale probably apply to the scripts, but I want to take a look to them first. In any case thats a matter for a different PR, this one objective was to remove the driver without generating dead code behind. And I think that future PR should remove the whole DatabasetType enum, which does not really make sense. The existing Postgres check in the the producer, to be honest, it is pretty lame, but I do not want to mix PRs.

@fjtirado
Copy link
Contributor Author

fjtirado commented Feb 6, 2024

@porcelli I think I found the script you were referring to https://github.com/apache/incubator-kie-kogito-runtimes/blob/main/addons/common/persistence/jdbc/src/main/resources/db/oracle/V1.35.0__create_runtimes_Oracle.sql. It makes sense according to the existing jdbc addon design. A design that is questionable, but it it not really related with this PR and is not going to be fixed by removing the ORACLE constant from the enum. On the contrary, it will be even more misleading, but without the ORACLE constants, the whole thing looks even more strange.

@fjtirado fjtirado requested a review from porcelli February 6, 2024 17:10
@mariofusco
Copy link
Contributor

@porcelli I agree that we shouldn't left anything behind, but I would approve and merge this PR regardless, at least to resolve this emergency. We could address any other leftover with another follow up PR, but at least this wouldn't be blocker for the release anymore.

@porcelli
Copy link
Member

porcelli commented Feb 6, 2024

@mariofusco if this was the only remaining blocker for release; I'd agree with you. But since we still have time due other issues being worked.. I think we could have an adicional cycle to get this properly cleaned up.

@fjtirado
Copy link
Contributor Author

fjtirado commented Feb 7, 2024

@porcelli I do not understand why we need to remove the script, but I will remove it anyway

@fjtirado fjtirado force-pushed the oracle_removal_proposal branch from 7f440a6 to 0305cf1 Compare February 7, 2024 11:41
@fjtirado
Copy link
Contributor Author

fjtirado commented Feb 7, 2024

@porcelli Script and enum removed.

Comment on lines -29 to -31
ANSI("ansi", "process_instances"),
ORACLE("Oracle", "PROCESS_INSTANCES"),
POSTGRES("PostgreSQL", "process_instances");
Copy link
Member

Choose a reason for hiding this comment

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

why instead of completely remove the enum, use something more generic... better aligned with the intention. Something like:

  • JSONB_DATABASE
  • BLOB_DATABASE
  • ANSI_DATABASE

Copy link
Contributor Author

@fjtirado fjtirado Feb 7, 2024

Choose a reason for hiding this comment

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

@porcelli The enum was basically useless (as shown in the last commit, there are better ways to find out if we should use the correlation feature, which currently only works in postgres) ? Therefore, removing it is better than start a discussion (not related with the intent of the PR) over which names we should give to an enum that is not needed.
Another reason I cannot proceed with your request change is that those values you are proposing are implementation dependendant. The only feature (in runtimes, and this enum is for runtime) that is using jsonb is the serverless workflow correlation and that will soon change when we retake implementation of this feature (that was interrupted one year ago), so it does not make sense at all to expose this soon to be reverted implementation detail into a public enum.

@fjtirado fjtirado requested a review from porcelli February 7, 2024 16:32
@porcelli
Copy link
Member

porcelli commented Feb 7, 2024

thank you @fjtirado for the changes!

@fjtirado fjtirado force-pushed the oracle_removal_proposal branch from 0305cf1 to e1793e2 Compare February 7, 2024 19:06
@fjtirado fjtirado force-pushed the oracle_removal_proposal branch from e1793e2 to 3539a13 Compare February 7, 2024 19:08
@fjtirado fjtirado merged commit 2e15b49 into apache:main Feb 8, 2024
6 checks passed
rgdoliveira pushed a commit to rgdoliveira/kogito-runtimes that referenced this pull request Mar 11, 2024
* Removing oracle driver and associated tests

* Removing Oracle container

* Removing oracle enum and script
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.

5 participants