Skip to content

Commit

Permalink
🎨 Data repo support for purging unreferenced indexes and objects #8054
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Apr 22, 2023
1 parent 566e26d commit 84bf461
Show file tree
Hide file tree
Showing 3 changed files with 525 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Properties": {
"id": "20210615213222-vs5tzbd",
"title": "Data history",
"updated": "20230403114455"
"updated": "20230422102255"
},
"Children": [
{
Expand Down Expand Up @@ -1427,12 +1427,12 @@
"HeadingLevel": 3,
"Properties": {
"id": "20220615120602-nzrp6gt",
"updated": "20220615120602"
"updated": "20230422102109"
},
"Children": [
{
"Type": "NodeText",
"Data": "Browse data snapshots"
"Data": "Browse data snapshot"
}
]
},
Expand Down Expand Up @@ -1485,35 +1485,200 @@
"HeadingLevel": 3,
"Properties": {
"id": "20220615120602-nhnnujh",
"updated": "20220615120602"
"updated": "20230422102056"
},
"Children": [
{
"Type": "NodeText",
"Data": "Clean data snapshot"
"Data": "Cleanup data snapshot"
}
]
},
{
"ID": "20220615120602-f90cll0",
"Type": "NodeParagraph",
"ID": "20230422101614-mdijztr",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20220615120602-f90cll0",
"updated": "20220615120602"
"id": "20230422101614-mdijztr",
"updated": "20230422102255"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manually deleting the "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace/repo/"
"ID": "20230422101614-5lwp8u3",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230422101614-5lwp8u3",
"updated": "20230422102255"
},
"Children": [
{
"ID": "20230422101614-5kvwhn7",
"Type": "NodeParagraph",
"Properties": {
"id": "20230422101614-5kvwhn7",
"updated": "20230422102255"
},
"Children": [
{
"Type": "NodeText",
"Data": "​"
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Settings"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "About"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Data repo purge"
},
{
"Type": "NodeText",
"Data": "​ will delete all unreferenced snapshots and related data objects. \"Referenced snapshots\" refer to snapshots pointed to under repo/refs/:"
}
]
},
{
"ID": "20230422101614-ibwplih",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230422101614-ibwplih",
"updated": "20230422102025"
},
"Children": [
{
"ID": "20230422101614-wqxklla",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230422101614-wqxklla",
"updated": "20230422102025"
},
"Children": [
{
"ID": "20230422101614-uwv2229",
"Type": "NodeParagraph",
"Properties": {
"id": "20230422101614-uwv2229",
"updated": "20230422102025"
},
"Children": [
{
"Type": "NodeText",
"Data": "​"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "latest"
},
{
"Type": "NodeText",
"Data": "​ points to the latest snapshot"
}
]
}
]
},
{
"ID": "20230422101614-tgrdynv",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230422101614-tgrdynv",
"updated": "20230422102023"
},
"Children": [
{
"ID": "20230422101614-tf542fs",
"Type": "NodeParagraph",
"Properties": {
"id": "20230422101614-tf542fs",
"updated": "20230422102023"
},
"Children": [
{
"Type": "NodeText",
"Data": "​"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "tags/*"
},
{
"Type": "NodeText",
"Data": "​ point to manually tagged snapshots"
}
]
}
]
}
]
}
]
},
{
"Type": "NodeText",
"Data": " folder will clear all data snapshots."
"ID": "20230422101614-ht2yhm0",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230422101614-ht2yhm0",
"updated": "20230422101614"
},
"Children": [
{
"ID": "20230422101614-lxjcg2j",
"Type": "NodeParagraph",
"Properties": {
"id": "20230422101614-lxjcg2j",
"updated": "20230422101614"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manually delete the "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace/repo/"
},
{
"Type": "NodeText",
"Data": "​ folder to clear all data snapshots"
}
]
}
]
}
]
},
Expand Down
Loading

0 comments on commit 84bf461

Please sign in to comment.