Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent garbage collection from removing default profiles #1843

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

aleortega
Copy link
Contributor

Description

This PR prevents the garbage collection from removing default profiles from the database whenever it runs.


it('should not garbage collect default profiles even when they are old', async () => {
const timestamp = Date.now() - PROFILE_DURATION * 2
const defaultProfile = await buildDeployData(['default123'], {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT about setting const those string, maybe a beforeEach?

Suggested change
const defaultProfile = await buildDeployData(['default123'], {
const defaultProfile = await buildDeployData([PROFILE[1]], {

Comment on lines +252 to +253
'test/integration/resources/some-binary-file.png',
'test/integration/resources/some-text-file.txt'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same this urls

Comment on lines +259 to +263
const regularProfile = await buildDeployData(['0x000000000'], {
type: EntityType.PROFILE,
contentPaths: [
'test/integration/resources/some-binary-file.png',
'test/integration/resources/some-text-file.txt'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

Suggested change
const regularProfile = await buildDeployData(['0x000000000'], {
type: EntityType.PROFILE,
contentPaths: [
'test/integration/resources/some-binary-file.png',
'test/integration/resources/some-text-file.txt'
const regularProfile = await buildDeployData([PROFILE[2]], {
type: EntityType.PROFILE,
contentPaths: [
URL[0], URL[1]

@aleortega aleortega merged commit 692444e into main Feb 28, 2025
5 checks passed
@aleortega aleortega deleted the fix/prevent-default-profiles-removal branch February 28, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants