Skip to content

DEV: First pass at groups step for Discourse converter #32919

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

Draft
wants to merge 3 commits into
base: dev/mt/intermediate-db-schema
Choose a base branch
from

Conversation

s3lase
Copy link
Contributor

@s3lase s3lase commented May 26, 2025

This change implements converter step for converting Discourse groups to intermediate DB format needed for import into Discourse.

It tracks seeded automatic groups which will then mapped to seeded automatic groups in the destination Discourse instance instead of being imported as new groups

@github-actions github-actions bot added the migrations-tooling PR which includes changes to migrations tooling label May 26, 2025
Comment on lines +27 to +32
if item[:original_flair_upload_id].present?
IntermediateDB::Upload.create_for_file(
path: item[:flair_path],
filename: item[:flair_filename],
)
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🗒️ Confirm if path can be used as-is for non-local upload dumps

Copy link
Member

Choose a reason for hiding this comment

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

There's no easy answer for that. It depends on how we are going to execute the converter and where uploads are stored. Always local? Or maybe on S3? How are we going to download them from S3? The files might not always be available for download without S3 credentials.

Starting with a full backup that's restored locally seems to be the easiest starting point for running a converter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the current implementation should work with local files

@s3lase s3lase force-pushed the dev/mt/intermediate-db-schema branch from 30518c1 to 681c53f Compare May 27, 2025 01:21
s3lase added a commit that referenced this pull request May 27, 2025
This change implements converter step for converting Discourse `permalinks`
to intermediate DB format needed for import into Discourse.
@s3lase s3lase changed the title DEV: First pass at group step for Discourse converter DEV: First pass at groups step for Discourse converter May 27, 2025
This change implements converter step for converting Discourse `groups`
to intermediate DB format needed for import into Discourse.

It tracks seeded automatic groups  which will then mapped to seeded
automatic groups in the destination Discourse instance instead of being imported
as new groups
@s3lase s3lase force-pushed the dev/mt/converter/discourse-groups branch from 343ee51 to 1dcb5a5 Compare May 27, 2025 01:40
@s3lase s3lase force-pushed the dev/mt/intermediate-db-schema branch 2 times, most recently from 6a4ffb5 to f07383b Compare May 29, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migrations-tooling PR which includes changes to migrations tooling
Development

Successfully merging this pull request may close these issues.

2 participants