You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use server-provided GC grace period for tombstone removal
`gcGracePeriod` is now set from connectionDetails received on CONNECTED
event. Added to realtime in [1]
Resolves PUB-1702
[1] https://ably.atlassian.net/browse/PUB-1127
Copy file name to clipboardExpand all lines: test/common/modules/private_api_recorder.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,7 @@ define(['test/support/output_directory_paths'], function (outputDirectoryPaths)
79
79
'read.Defaults.version',
80
80
'read.LiveMap._dataRef.data',
81
81
'read.EventEmitter.events',
82
+
'read.Objects.gcGracePeriod',
82
83
'read.Platform.Config.push',
83
84
'read.ProtocolMessage.channelSerial',
84
85
'read.Realtime._transports',
@@ -140,8 +141,8 @@ define(['test/support/output_directory_paths'], function (outputDirectoryPaths)
140
141
'write.Defaults.ENDPOINT',
141
142
'write.Defaults.ENVIRONMENT',
142
143
'write.Defaults.wsConnectivityCheckUrl',
143
-
'write.Objects._DEFAULTS.gcGracePeriod',
144
144
'write.Objects._DEFAULTS.gcInterval',
145
+
'write.Objects.gcGracePeriod',
145
146
'write.Platform.Config.push',// This implies using a mock implementation of the internal IPlatformPushConfig interface. Our mock (in push_channel_transport.js) then interacts with internal objects and private APIs of public objects to implement this interface; I haven’t added annotations for that private API usage, since there wasn’t an easy way to pass test context information into the mock. I think that for now we can just say that if we wanted to get rid of this private API usage, then we’d need to remove this mock entirely.
expect(objects.gcGracePeriod).to.equal(999,'Check gcGracePeriod is updated on new CONNECTED event');
4272
+
},client);
4273
+
});
4274
+
4230
4275
consttombstonesGCScenarios=[
4231
4276
// for the next tests we need to access the private API of Objects plugin in order to verify that tombstoned entities were indeed deleted after the GC grace period.
4232
4277
// public API hides that kind of information from the user and returns undefined for tombstoned entities even if realtime client still keeps a reference to them.
@@ -4333,8 +4378,6 @@ define(['ably', 'shared_helper', 'chai', 'objects', 'objects_helper'], function
0 commit comments