-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.27.0' into main
- Loading branch information
Showing
137 changed files
with
3,114 additions
and
2,676 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.26.3 | ||
0.27.0 |
This file contains 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
This file contains 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
13 changes: 13 additions & 0 deletions
13
backend/api/admin/src/main/java/co/airy/core/api/config/dto/ComponentInfo.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package co.airy.core.api.config.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ComponentInfo { | ||
private boolean enabled; | ||
private boolean healthy; | ||
} |
This file contains 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
This file contains 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
This file contains 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
31 changes: 31 additions & 0 deletions
31
backend/api/communication/src/main/java/co/airy/core/api/communication/dto/Messages.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package co.airy.core.api.communication.dto; | ||
|
||
import co.airy.model.message.dto.MessageContainer; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
|
||
import java.util.Comparator; | ||
import java.util.TreeSet; | ||
import java.util.concurrent.ConcurrentSkipListMap; | ||
import java.util.concurrent.ConcurrentSkipListSet; | ||
|
||
import static java.util.Comparator.comparing; | ||
|
||
public class Messages extends ConcurrentSkipListSet<MessageContainer> { | ||
@JsonCreator | ||
public Messages() { | ||
super((MessageContainer c1, MessageContainer c2) -> { | ||
if (c1.getMessage().getSentAt() == c2.getMessage().getSentAt()) { | ||
// If messages share the same timestamp | ||
return c1.getMessage().getId().compareTo(c2.getMessage().getId()); | ||
} | ||
|
||
return Long.compare(c2.getMessage().getSentAt(), c1.getMessage().getSentAt()); | ||
}); | ||
} | ||
|
||
// TreeSet does not support updating objects | ||
public void update(MessageContainer container) { | ||
remove(container); | ||
add(container); | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
...d/api/communication/src/main/java/co/airy/core/api/communication/dto/MessagesTreeSet.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.