-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add oslc-ui-model module #69
Conversation
@jadelkhoury @AndreyBespamyatnov please review |
2008523
to
e6e509a
Compare
e6e509a
to
758a6ad
Compare
@jadelkhoury please check if this is suitable for your use in the LyoD Generator. I am ready to merge and release this in 4.1.0.alpha. |
@berezovskyi ! So are these files actually copied from a build from Finally, you are using "domains/ui-classes". (a) Why under "domains"? (b) rename ui-classes to "oslc-ui"? |
Yes
By hand. Edit: I did not see any template placeholders in the code. It will be best to move the classes here and update the instructions in the original repo to add this new Maven module as a dependency.
These are just model classes, not the actual OSLC UI, I am happy to rename but confusion must be avoided. Please suggest a better name but not |
It would be great of course if we can move them here. But I think they are being build from this, lines 10-13.
I mean,
|
You are right, I forgot about that.
How about |
Alternatively, @jadelkhoury, we can use https://github.com/joelittlejohn/jsonschema2pojo#jsonschema2pojo-- native Maven generation capabilities. The problem is that the JSON file is generated from JavaScript (TypeScript)... |
Naming server/oslc-ui-model is fine. How do we proceed with the build? Could we not build the stuff from https://github.com/eclipse/lyo.oslc-ui? I was thinking that the build can create a "build" folder under lyo.oslc-ui. |
Actually, we can and it may be the best solution. I was reluctant to suggest this option as it would require to redo all the deployment setup to Eclipse Maven and OSSRH repositories. Let's make the move when there will be changes to the schema so that we don't end up doing extra work for something that won't change much? |
This will require us to pull another repo during the build of this repo and it'd rather avoid it.
I will update the PR shortly. |
ok. go ahead. But just to be sure, it is possible to build the code on oslc-ui? |
Sure, but it's not of much use unless we publish JARs to Eclipse Maven and Maven Central (via OSSRH in the middle). |
This is what I do to include swagger-ui code into an oslc server. I guess you mean the same, right? |
No, I think we mean different things. Your example uses a Maven package to include resources other than Java classes in the project. This particular module is code-only. The npm package that is in the other repo could be converted to (or rather augmented by) a Maven module that will contain no code and just the generated resources that can be copied into the project using the approach you linked to. Otherwise that npm package should be published on npm, e.g. https://www.npmjs.com/package/oslc-service (just deployed it for the test). |
@jadelkhoury please check |
Looks good, except that I have since then updated the PreviewFactory class. So, this is a good test on how/when things get updated. I also get the impression that "Server" is where we are putting old obsolete stuff (wink, oauth). But logically, I don't see a problem with the location. |
Jad, that class is not generated and should be moved completely here.
|
Signed-off-by: Andrew Berezovskyi <andrew@berezovskyi.me>
@jadelkhoury I just ported your commit to this branch. I will update the oslc-ui instructions once this PR is merged and we confirm the module can be loaded as a dependency. |
How about we merge, and then I can test and update the instructions accordingly? I think it is good to go. |
Added instructions in eclipse/lyo.oslc-ui#8, ready to test once https://ci.eclipse.org/lyo/job/lyo-monorepo/79/ succeeds. |
Description
Package Java classes from https://github.com/eclipse/lyo.oslc-ui/runs/1574315947 as a
org.eclipse.lyo.domains:ui-classes
module in the main repo.Checklist
Issues
See eclipse/lyo.oslc-ui#3