Skip to content

Commit

Permalink
feat: add feed pull status
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Jun 14, 2024
1 parent 189b095 commit b58d302
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
7 changes: 4 additions & 3 deletions proto/librarian/sephirah/v1/netzach.proto
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ message SystemNotificationFilter {

enum SystemNotificationLevel {
SYSTEM_NOTIFICATION_LEVEL_UNSPECIFIED = 0;
SYSTEM_NOTIFICATION_LEVEL_ERROR = 1;
SYSTEM_NOTIFICATION_LEVEL_WARNING = 2;
SYSTEM_NOTIFICATION_LEVEL_INFO = 3;
SYSTEM_NOTIFICATION_LEVEL_ONGOING = 1;
SYSTEM_NOTIFICATION_LEVEL_ERROR = 2;
SYSTEM_NOTIFICATION_LEVEL_WARNING = 3;
SYSTEM_NOTIFICATION_LEVEL_INFO = 4;
}

enum SystemNotificationType {
Expand Down
17 changes: 14 additions & 3 deletions proto/librarian/sephirah/v1/yesod.proto
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,14 @@ message FeedConfig {
FeedConfigStatus status = 6;
google.protobuf.Duration pull_interval = 7;
string category = 8;
// response only
optional google.protobuf.Timestamp latest_update_time = 9;
// If ture, exclude items from ListFeedItemsResponse
bool hide_items = 10;
bool hide_items = 9;
// response only
optional google.protobuf.Timestamp latest_pull_time = 10;
// response only
optional FeedConfigPullStatus latest_pull_status = 11;
// response only
optional string latest_pull_message = 12;
}

enum FeedConfigStatus {
Expand All @@ -175,6 +179,13 @@ enum FeedConfigStatus {
FEED_CONFIG_STATUS_SUSPEND = 2;
}

enum FeedConfigPullStatus {
FEED_CONFIG_PULL_STATUS_UNSPECIFIED = 0;
FEED_CONFIG_PULL_STATUS_PROCESSING = 1;
FEED_CONFIG_PULL_STATUS_SUCCESS = 2;
FEED_CONFIG_PULL_STATUS_FAILED = 3;
}

// Digest information generated from origin item data
message FeedItemDigest {
librarian.v1.InternalID feed_id = 1;
Expand Down

0 comments on commit b58d302

Please sign in to comment.