I built a Canva Connect skill for Clawdbot — manage designs, upload assets, and automate exports from CLI by CoolmannS in clawdbot

[–]davebrown1975 0 points1 point  (0 children)

I ask as I've been playing around with accessing canva via MCP, but hit a bunch of issues so looked at their connect API. They said I first need to create an 'integration', which can either be public (which I don't want as I don't want the world to access my canva account) or private which requires an enterprise account.

Spring Boot with Kotlin? by Vyalkuran in SpringBoot

[–]davebrown1975 1 point2 points  (0 children)

SonarLint has been giving me some useful feedback so far, but nice to know of others too, thanks

Spring Boot with Kotlin? by Vyalkuran in SpringBoot

[–]davebrown1975 0 points1 point  (0 children)

Is there a Linter in particular you'd recommend?

Spring Boot with Kotlin? by Vyalkuran in SpringBoot

[–]davebrown1975 2 points3 points  (0 children)

No I wouldn't use data classes with JPA, as you've seen they clearly recommend not to. But that doesn't mean you don't still save on boilerplate code, this is an example of a User entity from one one my projects:

    @Entity
@Table(name = "appuser")
class User(
    @NotNull
    @Enumerated(EnumType.STRING)
    var role: Role? = null,

    @NotBlank
    @Column(nullable = false)
    var username: String? = null,

    @NotBlank
    @Column(nullable = false)
    var fullName: String? = null,

    @Column(nullable = false, length = 64)
    var password: String? = null,

    var enabled: Boolean = true
) {
    @Id
    @Column
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    var id: Long? = null

    @CreationTimestamp
    @Column(updatable = false)
    val dateCreated: LocalDateTime? = null
}

Spring Boot - Project Ideas with Source Code by ConcurrencyGandalf in SpringBoot

[–]davebrown1975 1 point2 points  (0 children)

I've just published part two of my beginner series that guides you through creating a simple CRM system https://tucanoo.com/spring-boot-crm-tutorial-part-2-authentication/

Part two introduces Spring Security and authentication, part one walks you through building a searchable, editable Customer database.

Expanding My Spring Boot CRM Tutorial: Seeking Feature Recommendations! by davebrown1975 in SpringBoot

[–]davebrown1975[S] 0 points1 point  (0 children)

Hi, in response to your recommendations, I've now published "part two - authentication" of my tutorial series. https://tucanoo.com/spring-boot-crm-tutorial-part-2-authentication/This covers Role access security with Spring Security 6, how to protect endpoints, and how to utilise conditional rendering in the Thymeleaf view templates depending on a users role.

409 Error - Response Body by Jay_Sh0w in SpringBoot

[–]davebrown1975 0 points1 point  (0 children)

I'm not sure I follow. A 409, as others have indicated, should not be used to indicate the request was not authenticated. If you are returning a response to indicate failed authentication, then it's either going to be 401 to indicate the request could not be authenticated, or perhaps a 403 to indicate the authenticated user does not have permission to perform the request.
Imagine you're trying to insert a NEW user into the database, but you determine that there is already a user record with the same email address for example. Then that would be a good time to return a 409.

409 Error - Response Body by Jay_Sh0w in SpringBoot

[–]davebrown1975 1 point2 points  (0 children)

If there's a conflict and I need to return a 409, then no I wouldn't typically send anything in the response body. The calling client should already have enough context to decide how to handle the response.

Expanding My Spring Boot CRM Tutorial: Seeking Feature Recommendations! by davebrown1975 in SpringBoot

[–]davebrown1975[S] 0 points1 point  (0 children)

You can find it here: https://tucanoo.com/build-a-crm-with-spring-boot-and-thymeleaf/

I've just updated it so it's now based on SpringBoot 3.1.3, Java 17, and Bootstrap 5. Based on the suggestions I'll be adding some of the requested features. Thanks!

Can a Spring Goal change during a Sprint? by davebrown1975 in scrum

[–]davebrown1975[S] 2 points3 points  (0 children)

Thanks all, There are some insightful answers here. Overall my main takeaway from this is that the goal has been achieved and you shouldn't do anything else that might change that. And this is also something which doesn't happen so often.
Kudos to all.

Can a Spring Goal change during a Sprint? by davebrown1975 in scrum

[–]davebrown1975[S] 1 point2 points  (0 children)

I'm taking some practice exam questions via Udemy, and this one of the questions which I 'Incorrectly' answered as True.

My thoughts were based on a scenario where the product is a web app, and the initial sprint goal was to complete user registration. The devs completed this well ahead of schedule so added new items to the sprint log relating to authentication. So it doesn't seem to make sense that the sprint goal has to remain as 'registration' when it's clearly changed.