Skip to content

feat: restructure versions#253

Open
kptdobe wants to merge 6 commits intomainfrom
re-version
Open

feat: restructure versions#253
kptdobe wants to merge 6 commits intomainfrom
re-version

Conversation

@kptdobe
Copy link
Contributor

@kptdobe kptdobe commented Mar 17, 2026

WIP

Still TODO: enable new content structure for defined projects to progressively migrate orgs

Fix for #252

This implements the plan defined in #252, including:

  • move .da-versions at site level
  • get rid of individual empty audit files, replaced by a single audit.txt
  • backward compatible, can deal with the 2 .da-versions (legacy and new) and merge to provide the list
  • reduce audit logs inside a 30 mins timeframe before writing to audit.txt
  • scripts to migrate content
  • get rid of Collab parse version (for future new documents)
  • same API, no client side code to change

Deployment process:

  • once code is deployed and if org has the flag (TBD), audits and versions will start going inside new structure /org/site/.da-versions/<pageuid>/
  • list api can deal with legacy and new da-versions content structure (get both, merge and deliver)
  • script will be executed to migrate the org - legacy da-versions content structure will be converted to new da-versions content structure
  • finally, legacy /org/.da-versions can be deleted

Example of an audit.txt file (reduced for visibily):

...	
1757486495699	[{"email":"anonymous"}]	/surf.html		
1757599282555	[{"email":"anonymous"}]	/surf.html		
1757672270349	[{"email":"acapt@adobe.com"}]	/surf.html		
1759915696652	[{"email":"anonymous"}]	/surf.html		
1759931154830	[{"email":"acapt@adobe.com"}]	/surf.html		
1760454709852	[{"email":"acapt@adobe.com"}]	/surf.html		
1760454714353	[{"email":"anonymous"}]	/surf.html		
1760454867562	[{"email":"acapt@adobe.com"}]	/surf.html		
1760454872014	[{"email":"anonymous"}]	/surf.html		
1760518729873	[{"email":"acapt@adobe.com"}]	/surf.html		
1760518734650	[{"email":"anonymous"},{"email":"acapt@adobe.com"}]	/surf.html		
1760519725291	[{"email":"acapt@adobe.com"}]	/surf.html		
1760519729927	[{"email":"anonymous"},{"email":"acapt@adobe.com"}]	/surf.html		
1760523237623	[{"email":"acapt@adobe.com"},{"email":"anonymous"}]	/surf.html		
1760623550803	[{"email":"anonymous"}]	/surf.html		
1763455048958	[{"email":"anonymous"}]	/surf.html		
1763455055833	[{"email":"anonymous"}]	/surf.html	Published	8c3f66bd-8e07-4471-9f26-f5cd620010ef
1763456320254	[{"email":"anonymous"}]	/surf.html		
1763456323293	[{"email":"anonymous"}]	/surf.html	test	292970e0-2f65-48c0-86ea-2c5400a58f29
1765451481955	[{"email":"anonymous"}]	/surf.html		52cb811b-f038-4fcf-b26f-95ac8e0284d1
1765462084331	[{"email":"acapt@adobe.com"}]	/surf.html	Alex	6f8be932-3053-45e2-bbf1-263eebb6953f
...
1772552212507	[{"email":"acapt@adobe.com"}]	/surf.html		
1772552221781	[{"email":"acapt@adobe.com"}]	/surf.html	alex-test	eddc1f5c-1d5d-4290-99ef-59864a128d6d
1773301125436	[{"email":"acapt@adobe.com"}]	/surf.html	Previewed	0f8089cc-5f2e-4f88-b422-1ae35f8894cb
1773311458845	[{"email":"acapt@adobe.com"}]	/surf.html	Published	ba5a6d51-148a-4c9b-a2b6-69501a89bff7
1773667735876	[{"email":"acapt@adobe.com"}]	/surf.html

Before screenshot:
image

After screenshot:
image

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.

1 participant