Skip to content

Commit

Permalink
feat: delta rework
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Jan 22, 2025
1 parent f8906aa commit af54940
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ export const filterHydrationEventByQuery = (
namePrefix: string,
): DeltaHydrationEvent => {
const allProjects = projects.includes('*');
const { type, eventId, features } = event;
const { type, features } = event;

return {
type,
eventId,
features: features.filter((feature) => {
return (
feature.name.startsWith(namePrefix) &&
Expand Down Expand Up @@ -204,12 +203,6 @@ export class ClientFeatureToggleDelta {
await this.updateFeaturesDelta();
await this.updateSegments();
this.storeFootprint();

// update our hydrate cache
// update our events cache

// we have existing base cache
// update our events cache
}
}

Expand Down Expand Up @@ -309,7 +302,6 @@ export class ClientFeatureToggleDelta {
await this.configurationRevisionService.getMaxRevisionId();

this.delta[environment] = new DeltaCache({
eventId: this.currentRevisionId,
type: DELTA_EVENT_TYPES.HYDRATION,
features: baseFeatures,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export class DeltaCache {
default:
// TODO: something is seriously wrong
}
this.hydrationEvent.eventId = appliedEvent.eventId;
}
}
}

0 comments on commit af54940

Please sign in to comment.