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

WIP: Updated adaptors to be based on 4.0.0-SNAPSHOT (Jax-rs2.0) #24

Closed
wants to merge 23 commits into from

Conversation

jadelkhoury
Copy link
Contributor

@jadelkhoury jadelkhoury commented Mar 18, 2019

This branch is based on the latest changes in LyoDesigner 4.0.0-SNAPSHOT ( and hence Jax-rs2.0)

I think the master branch should still be based on the released 2.4.0, but we do need this branch as long as we have not released 4.0.0 - at the least.


This change is Reviewable

@jadelkhoury
Copy link
Contributor Author

@berezovskyi @jamsden
Can you please help me with the review of the pom.xml files at the least?

I would like the pom.xml files to be as neat and minimal as possible, since I can then use them as basis to update our instructions on Wiki on how to create servers/clients in general.
Notes:

  1. There is a new dependencyManagement part, which might be a hack to make Swagger 1.5 work together with Jersey 2.27.) Is there a better way to do it?
  2. I could not get the code to work on the latest Jersey 2.28. Only 2.27
  3. Any thing else i missed?

The 2 adaptors work fine. THey also include client code.

adaptor-rm-webapp/pom.xml Outdated Show resolved Hide resolved
@berezovskyi
Copy link
Member

looks good overall, so I have approved. but please see the comments inside.

@jadelkhoury
Copy link
Contributor Author

@berezovskyi Please have a look at my new patch to see if it is what you had in mind.

@berezovskyi
Copy link
Member

berezovskyi commented Mar 28, 2019 via email

@jadelkhoury jadelkhoury self-assigned this Mar 28, 2019
@jadelkhoury
Copy link
Contributor Author

We will not merge this branch into master until 4.0.0 is released.
Master is based on 2.4.0.

@berezovskyi
Copy link
Member

berezovskyi commented Mar 28, 2019 via email

@berezovskyi
Copy link
Member

client needs to be updated.

@berezovskyi
Copy link
Member

This branch has diverged from master and has merge conflicts. I have resolved most of them but there is a conflict in the AIRD file, which is super tricky:

image

@berezovskyi
Copy link
Member

I have merged the AIRD from master in this case.

@berezovskyi
Copy link
Member

Just ignore it, I was touching the wrong branch.

@berezovskyi
Copy link
Member

@jadelkhoury I have switched the code to use OSLC4J Client so that the build stops failing but this needs to be done in LyoD: dcb169a

@jadelkhoury
Copy link
Contributor Author

I am concerned about all changes done on this branch since a401172

  1. Changes to generated code should be avoided, since the main point of this project is to demonstrated generated code. We need to avoid manual changes (such as those done on the client).
  2. Changes to the non-generated parts of the code should be captured in our instructions http://oslc.github.io/developing-oslc-applications/eclipse_lyo/setup-an-oslc-provider-consumer-application.html
  3. I'd be very very careful when merging AIRD files. (that is avoid.) THere is no point merging from master either. Master is meant to be for code modelled/generated from 2.4.0. THis branch is from 4.0.0. Naturally, they are to diverse.

jadelkhoury and others added 3 commits May 9, 2019 21:13
Generating working code based on latest LyoDesigner 4.0-SNAPSHOT.
Reintroducing package imports that were removed in previous commits.
@berezovskyi
Copy link
Member

Do you want to drag this branch all the way till the 4.0 is released? Or shall we merge it soon?

@jadelkhoury
Copy link
Contributor Author

Do you want to drag this branch all the way till the 4.0 is released? Or shall we merge it soon?

My thought is that we wait until 4.0 is released.

…ptor. (#45)

* Introducing Creation Dialog and complete CRUD functions on the
rm-adaptor.
Also, modifying the way the rm-adpator resources are randomly generated.

* Update of jsp pages.
@berezovskyi berezovskyi changed the title Updated adaptors to be based on 4.0.0-SNAPSHOT (Jax-rs2.0) WIP: Updated adaptors to be based on 4.0.0-SNAPSHOT (Jax-rs2.0) Dec 8, 2019
@berezovskyi
Copy link
Member

Do you need any help resolving merge conflicts or with anything else in this PR?

@jadelkhoury
Copy link
Contributor Author

Do you need any help resolving merge conflicts or with anything else in this PR?

Most likely. my thought is that we move this into master, once we release LyoDesigner 4.0.0, which I hope we can do soon.
So first step is to release 4.0.0.

@berezovskyi
Copy link
Member

I suggest to keep this as a sample JAX-RS 1.1 implementation instead of merging this and then deprecating in favour of OSLC 2020 refimpl

@jadelkhoury
Copy link
Contributor Author

@berezovskyi Your last comment doesn't make sense to me.
Please, let us discuss this repo before we make any chanfges to it.

@berezovskyi
Copy link
Member

@jadelkhoury I based it on what you wrote actually in: oslc-op/refimpl#21 If we go that route, let's keep this repo as a valid 2.x Lyo sample code and follow your plan to make refimpl repo the Lyo 4.0 / JAX-RS 2.0 sample code.

@jadelkhoury
Copy link
Contributor Author

It will take some time before we do oslc-op/refimpl#21. Until then, this repo is what I need to have.

If you want to do something on this repo, here's what I suggest (so we avoid all confusing once and for all):

We have two branches 2.4.0 & 4.0.0-SNAPSHOT. No master branch.
that is, either rename "master" into 2.4.0, or create a new branch from master to 2.4.0, and then kill the master branch.

@berezovskyi
Copy link
Member

berezovskyi commented Nov 9, 2020

Ok, my plan is not to touch master (much) especially given that no 2.x lyo releases are planned to come.

I can rename master into main-2.x and this branch into main-4.x (maybe there will be updates to this repo when 4.1 comes out?)

We can then close this PR as there is no reason to merge it anywhere and I can make main-4.x to be the main branch on Github.

@jadelkhoury
Copy link
Contributor Author

Yes to all in last proposal. thanks @berezovskyi

@berezovskyi berezovskyi closed this Nov 9, 2020
@berezovskyi berezovskyi deleted the 4.0.0-snapshot branch November 9, 2020 23:43
@berezovskyi
Copy link
Member

@jadelkhoury done. please delete outdated branches from https://github.com/OSLC/lyo-adaptor-sample-modelling/branches/stale if possible

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