Skip to content

Commit

Permalink
Switch Note.id from Integer to Long (#1706)
Browse files Browse the repository at this point in the history
* Switch Note.id from Integer to Long

GitLab has changed the data type of the Note id field from int to bigint.

Fixes #1705

#1705 (comment)
describes the issue in more detail.

* NoteObjectAttributes.id needs to be Long also

---------

Co-authored-by: Kris Stern <krisstern@outlook.com>
  • Loading branch information
MarkEWaite and krisstern committed Oct 11, 2024
1 parent 3f2cfd8 commit 804a294
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@GeneratePojoBuilder(intoPackage = "*.builder.generated", withFactoryMethod = "*")
public class Note {
private Integer id;
private Long id;
private Integer projectId;
private User author;
private Date createdAt;
Expand All @@ -17,11 +17,11 @@ public class Note {

public Note() {}

public Integer getId() {
public Long getId() {
return id;
}

public void setId(Integer id) {
public void setId(Long id) {
this.id = id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
@GeneratePojoBuilder(intoPackage = "*.builder.generated", withFactoryMethod = "*")
public class NoteObjectAttributes {

private Integer id;
private Long id;
private String note;
private Integer authorId;
private Integer projectId;
private Date createdAt;
private Date updatedAt;
private String url;

public Integer getId() {
public Long getId() {
return id;
}

public void setId(Integer id) {
public void setId(Long id) {
this.id = id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen
project,
noteHook()
.withObjectAttributes(noteObjectAttributes()
.withId(1)
.withId(1L)
.withNote("ci-run")
.withAuthorId(1)
.withProjectId(1)
Expand Down Expand Up @@ -119,7 +119,7 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen
project,
noteHook()
.withObjectAttributes(noteObjectAttributes()
.withId(1)
.withId(1L)
.withNote("ci-run")
.withAuthorId(1)
.withProjectId(1)
Expand Down

0 comments on commit 804a294

Please sign in to comment.