diff --git a/index.yaml b/index.yaml index 15fdc87..738ee66 100644 --- a/index.yaml +++ b/index.yaml @@ -6,48 +6,6 @@ indexes: # index.yaml file manually, remove the "# AUTOGENERATED" marker line above. # If you want to manage some indexes manually, move them above the marker line. -- kind: Object - properties: - - name: domains - - name: labels - - name: updated - direction: asc - -- kind: Object - properties: - - name: users - - name: labels - - name: updated - direction: asc - -- kind: Object - properties: - - name: domains - - name: labels - - name: updated - direction: desc - -- kind: Object - properties: - - name: users - - name: labels - - name: updated - direction: desc - -- kind: Object - properties: - - name: domains - - name: labels - - name: created - direction: desc - -- kind: Object - properties: - - name: users - - name: labels - - name: created - direction: desc - - kind: Object properties: - name: users @@ -59,18 +17,6 @@ indexes: - name: updated direction: desc -# these two are currently unused! as of 2024-01-24 -- kind: Object - properties: - - name: users - - name: created - -- kind: Object - properties: - - name: users - - name: created - direction: desc - - kind: Object properties: - name: notify @@ -93,6 +39,12 @@ indexes: - name: created direction: desc +- kind: Follower + properties: + - name: from + - name: status + - name: updated + - kind: Follower properties: - name: from @@ -100,6 +52,12 @@ indexes: - name: updated direction: desc +- kind: Follower + properties: + - name: to + - name: status + - name: updated + - kind: Follower properties: - name: to diff --git a/models.py b/models.py index 563e66f..4a86290 100644 --- a/models.py +++ b/models.py @@ -571,9 +571,6 @@ class Object(StringIdModel): 'feed', 'notification', 'user') # Keys for user(s) who created or otherwise own this activity. - # - # DEPRECATED: this used to include all users related the activity, including - # followers, but we've now moved those to the notify and feed properties. users = ndb.KeyProperty(repeated=True) # User keys who should see this activity in their user page, eg in reply to, # reaction to, share of, etc.