FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

JCL-234: Sample Spring Boot web app by bncummings · Pull Request #324 · inrupt/solid-client-java · GitHub

Repository navigation

JCL-234: Sample Spring Boot web app - #324

Merged
timea-solid merged 37 commits into
mainfrom
JCL-234-initialise-spring-boot-web-app
Mar 17, 2023
Merged

timea-solid merged 37 commits into
mainfrom
JCL-234-initialise-spring-boot-web-app

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

bncummings temporarily deployed to ESS PodSpaces March 2, 2023 16:08 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS PodSpaces March 2, 2023 16:08 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS DevNext March 2, 2023 16:08 — with GitHub Actions Inactive

langsamu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Just a few comments. I know this is WIP, feel free to ignore if they're not helpful.

Comment thread examples/springboot/pom.xml Resolved
bncummings temporarily deployed to ESS PodSpaces March 2, 2023 17:25 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS PodSpaces March 2, 2023 17:25 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS DevNext March 2, 2023 17:25 — with GitHub Actions Inactive
bncummings force-pushed the JCL-234-initialise-spring-boot-web-app branch from 6949a76 to cea447f Compare March 6, 2023 14:00
bncummings temporarily deployed to ESS PodSpaces March 6, 2023 14:00 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS PodSpaces March 6, 2023 14:00 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS DevNext March 6, 2023 14:00 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS PodSpaces March 6, 2023 14:11 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS PodSpaces March 6, 2023 14:11 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS DevNext March 6, 2023 14:11 — with GitHub Actions Inactive
bncummings marked this pull request as ready for review March 6, 2023 14:11
bncummings requested a review from a team March 6, 2023 14:11
acoburn changed the title Jcl 234 initialise spring boot web app JCL-234 initialise spring boot web app Mar 6, 2023
acoburn changed the title JCL-234 initialise spring boot web app JCL-234: Sample Spring boot web app Mar 6, 2023
acoburn temporarily deployed to ESS PodSpaces March 10, 2023 19:15 — with GitHub Actions Inactive
acoburn temporarily deployed to ESS PodSpaces March 10, 2023 19:15 — with GitHub Actions Inactive
acoburn temporarily deployed to ESS DevNext March 10, 2023 19:15 — with GitHub Actions Inactive

langsamu left a comment •
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Mostly style. One substantial comment about educational design.

Always happy to talk if you think.

Comment thread examples/pom.xml
Comment on lines +25 to +32
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${owasp.plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is this really intentionally here, committed in source?
Or is it just so you can get on with your dev?

If latter, I can show you nicer (not polluting source) ways of being in control of what you run when using Maven profiles.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is intentional. The examples are not released and are intended only to be example code for developers. As such, Spring and Quarkus both bring in many, many transitive dependencies. In the case of Spring, we are currently stuck on spring boot 2.x because 3.x requires Java 17. And the dependency check becomes just a distraction without providing any value. Of course, it is turned on everywhere else: this configuration only applies to the examples directory.

import org.springframework.web.bind.annotation.RestController;

@RestController
public class SolidController {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think this controller needs a bit of thought.

Currently none of the write* methods do anything with the request body. Instead they write nothing or a constant.
This seems a bit counter-intuitive to me.

I would branch into one of the following approaches:

  • Either use GET methods only. The idea here would be that the controller action methods are nothing but a thin wrapper, a facade used to invoke the Client functionality.
  • Or make the write* methods do something with the request body. This idea is about exposing a CRUD API using Spring that delegates to the Client CRUD functionality.

I've seen @acoburn's comment suggesting @PostMapping. I would choose option 2 above, in which case his comment stands.
I think that this case of delegating from Spring to Client will be a common developer case.

timea-solid temporarily deployed to ESS PodSpaces March 16, 2023 08:51 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces March 16, 2023 08:51 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext March 16, 2023 08:52 — with GitHub Actions Inactive

timea-solid commented Mar 16, 2023 •
edited
Loading

Copy link
Copy Markdown
Contributor

The application suffered a redesign and quite some change.

  1. It is using java 17 and spring boot 3
  2. Follows a Book Library use case -> check its README for more details
  3. Only reads a PUBLIC resource for now (GET) which also means it is expected that the resource needed exist on a Pod. (see README for details)
    Screens:


This is a first version, please consider merging to main.
In a next version we will implement authentication, take out usage of podStorage and instead read from webId, make the application also write data and delete data.
p.s. I decided to take auth out for now because it was either all pages under auth or none. Also, the code was not looking good just yet. The next version will build on the learnings we did thus far (with config and all) but will also make use of the more up to date Spring Boot auth ways.

timea-solid marked this pull request as ready for review March 16, 2023 09:00
timea-solid changed the title JCL-234: Sample Spring boot web app JCL-234: Sample Spring Boot web app Mar 16, 2023
timea-solid temporarily deployed to ESS PodSpaces March 16, 2023 13:27 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces March 16, 2023 13:28 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext March 16, 2023 13:28 — with GitHub Actions Inactive

acoburn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This looks really nice!

timea-solid temporarily deployed to ESS PodSpaces March 17, 2023 08:41 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces March 17, 2023 08:41 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext March 17, 2023 08:41 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS PodSpaces March 17, 2023 11:24 — with GitHub Actions Inactive
bncummings temporarily deployed to ESS PodSpaces March 17, 2023 11:24 — with GitHub Actions Inactive

Copy link
Copy Markdown
Contributor

Ben Switched the client_id in use again -> see #350 We prefer this one because we renamed the client from podspaces to myApp (more accurate).
Since this branch does not do authentication it does not matter if the clientid is there already or not before we merge this.

This branch was previously deployed

2 inactive deployments
ESS DevNext — 3ea59eb0 Deployed Mar 17, 2023 by timea-solid
ESS PodSpaces — 3ea59eb0 Deployed Mar 17, 2023 by timea-solid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL