ONEARMY / community-platform

A platform to build useful communities that aim to tackle global problems
https://platform.onearmy.earth
MIT License
1.14k stars 388 forks source link

HT Publishing bug #2892

Closed thisismattia closed 1 year ago

thisismattia commented 1 year ago

Describe the bug I was trying to clean up this HT https://community.preciousplastic.com/how-to/build-a-flipflopi-boat

Expected behaviour I made the changes and clicked "publish" under the assumption that I was saving a new version of the HT.

Bug However it looks like the HT has been published again. New publish date + HT count gone to zero from 15 😞

image

Any insights on what happened?

AlfonsoGhislieri commented 1 year ago

Could you just clarify what you mean with:

HT count gone to zero from 15

The total count of HowTos created onn their profile has gone down to 0?

thisismattia commented 1 year ago

Before I edited the HT the useful count was 15. When I saved it went to zero.

thisismattia commented 1 year ago

This is happening again, @davehakkens seems pretty serious bug 😬

image
thisislawatts commented 1 year ago

@thisismattia were you logged in with the the-flipflopi user when making the edits or as an Admin/Moderator user?

thisislawatts commented 1 year ago

Confirming that I have been able to recreate this behaviour locally. I am seeing that updates made to a How-to result in:

  1. the _created property holds the timestamp the document was modified.
  2. Any voted_useful data is dropped from the document during the update.

Next steps:

onearmy-bot commented 1 year ago

:tada: This issue has been resolved in version 1.114.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

evakill commented 1 year ago

@thisismattia using a local migration script, i was able to scrape useful votes for how-tos that had been overwritten. we could not get 100% of the data back, but we restored 121 useful votes for 13 how-tos, including the two in your original post. the data suggests this has been a problem since the beginning of September.

Screen Shot 2023-10-21 at 6 33 44 PM

in case it is useful, here is the record of all the data we recovered:

{
  "0jahBYgJtpDadwhU58lf": {
    "id": "0jahBYgJtpDadwhU58lf",
    "name": "El Tornillo Motor Injection Machine",
    "lastModified": "2023-10-21T10:11:43.354Z",
    "votedUsefulBy": ["preciousplasticukraine", "mattia"],
    "updatedUsefulBy": [
      "preciousplasticukraine",
      "mattia",
      "marcelaazoubel",
      "sigolene",
      "thisismattia",
      "tracecom"
    ],
    "votedUsefulByLength": 2,
    "currentVotedUsefulByLength": 6
  },
  "1sSR6tGWyfy5HvdqFXyS": {
    "id": "1sSR6tGWyfy5HvdqFXyS",
    "name": "Make a simple & efficient 500mm x 300 mm sheet",
    "lastModified": "2023-09-04T13:27:01.581Z",
    "votedUsefulBy": [
      "sigolene",
      "jogi-nl",
      "javiertecteos",
      "precious-plastic-cork",
      "treze",
      "alice_narayana"
    ],
    "updatedUsefulBy": [
      "sigolene",
      "jogi-nl",
      "javiertecteos",
      "precious-plastic-cork",
      "treze",
      "alice_narayana",
      "mattia",
      "aiotea",
      "amjad",
      "bonus-",
      "giulianomantovi",
      "johannplasto",
      "josephklatt",
      "pascal",
      "resourcewales",
      "thebigthink"
    ],
    "votedUsefulByLength": 6,
    "currentVotedUsefulByLength": 16
  },
  "2rowSJVwlKxXeh5BfxOU": {
    "id": "2rowSJVwlKxXeh5BfxOU",
    "name": "NPS_Air press injector-v1",
    "lastModified": "2023-09-29T04:32:36.234Z",
    "votedUsefulBy": [
      "mattia",
      "thisismattia",
      "c-tperk",
      "sigolene",
      "alejandro27",
      "precious-plastic-cork"
    ],
    "updatedUsefulBy": [
      "mattia",
      "thisismattia",
      "c-tperk",
      "sigolene",
      "alejandro27",
      "precious-plastic-cork",
      "circular-lab",
      "dk",
      "josephklatt",
      "kurumi_labs",
      "la-fbrica-makerspace",
      "marbleplastics",
      "pascal",
      "precious-plastic-bandung",
      "precious-plastic-genova",
      "precious-plastic-slovakia",
      "yashbafna"
    ],
    "votedUsefulByLength": 6,
    "currentVotedUsefulByLength": 17
  },
  "3LeTUqdwlEhax2A2KiR0": {
    "id": "3LeTUqdwlEhax2A2KiR0",
    "name": "Make a quick release for the extrusion machine",
    "lastModified": "2023-09-06T10:42:57.988Z",
    "votedUsefulBy": [
      "sigolene",
      "1st-machine-builder",
      "micagallinger",
      "raghav-"
    ],
    "updatedUsefulBy": [
      "sigolene",
      "1st-machine-builder",
      "micagallinger",
      "raghav-",
      "martijn"
    ],
    "votedUsefulByLength": 4,
    "currentVotedUsefulByLength": 5
  },
  "BUNpEAzJUyzMUgJ2ugjT": {
    "id": "BUNpEAzJUyzMUgJ2ugjT",
    "name": "Geodesic dome mould",
    "lastModified": "2023-09-25T23:14:47.192Z",
    "votedUsefulBy": ["plen17", "sigolene"],
    "updatedUsefulBy": [
      "plen17",
      "sigolene",
      "dahl-liah",
      "greenbrick",
      "martin-rogers",
      "mary",
      "nkosi"
    ],
    "votedUsefulByLength": 2,
    "currentVotedUsefulByLength": 7
  },
  "BzoyvNIWhH36hNk4Rg3k": {
    "id": "BzoyvNIWhH36hNk4Rg3k",
    "name": "Set up a Mix Workspace",
    "lastModified": "2023-09-28T08:36:01.669Z",
    "votedUsefulBy": [
      "jnadiasl__",
      "hvinova",
      "mattia",
      "jrespinozab",
      "godspeedplastic",
      "rodrigo-mero",
      "sigolene",
      "idan-cravchik"
    ],
    "updatedUsefulBy": [
      "jnadiasl__",
      "hvinova",
      "mattia",
      "jrespinozab",
      "godspeedplastic",
      "rodrigo-mero",
      "sigolene",
      "idan-cravchik",
      "johnalbornoz",
      "karma-karma",
      "nicolly-vieira-",
      "resourcewales",
      "rioochandraa",
      "shafi-ulla-khan",
      "stphane-",
      "tzvetan-milanov"
    ],
    "votedUsefulByLength": 8,
    "currentVotedUsefulByLength": 16
  },
  "Cdw7mDY7MTXbvfbXi2LP": {
    "id": "Cdw7mDY7MTXbvfbXi2LP",
    "name": "Make a Cyclette Shredder",
    "lastModified": "2023-09-26T15:17:48.838Z",
    "votedUsefulBy": [
      "thisismattia",
      "davide-v",
      "sigolene",
      "mattia",
      "selah",
      "marcelaazoubel"
    ],
    "updatedUsefulBy": [
      "thisismattia",
      "davide-v",
      "sigolene",
      "mattia",
      "selah",
      "marcelaazoubel",
      "mazedonia-diseinu-elkartea"
    ],
    "votedUsefulByLength": 6,
    "currentVotedUsefulByLength": 7
  },
  "M40SkCtKKfiAgCGJCPn5": {
    "id": "M40SkCtKKfiAgCGJCPn5",
    "name": "Build a 'Flipflopi' boat",
    "lastModified": "2023-10-19T19:15:53.870Z",
    "votedUsefulBy": ["marcelaazoubel", "mattia"],
    "updatedUsefulBy": [
      "marcelaazoubel",
      "mattia",
      "jamil",
      "albertoalfonzo",
      "chrismclarke",
      "francisco",
      "josephklatt",
      "mlvarsani",
      "nico",
      "pacoacu13",
      "seanoart",
      "thla",
      "tudi"
    ],
    "votedUsefulByLength": 2,
    "currentVotedUsefulByLength": 13
  },
  "MSI5LgCZB5mW36cDWtmq": {
    "id": "MSI5LgCZB5mW36cDWtmq",
    "name": "WS - 1.0",
    "lastModified": "2023-09-11T17:49:02.852Z",
    "votedUsefulBy": ["kzli"],
    "updatedUsefulBy": [
      "kzli",
      "1st-machine-builder",
      "adamj537",
      "clement-974",
      "davehakkens",
      "ecovate",
      "federecycler",
      "hugh",
      "iscjt",
      "josephklatt",
      "luciovallejos95",
      "makerspace",
      "marbleplastics",
      "precious-plastic-estonia",
      "precious-plastic",
      "precious-plastic-genova",
      "rab-mandrill",
      "recyclink",
      "sbk",
      "thisismattia",
      "tonksi-"
    ],
    "votedUsefulByLength": 1,
    "currentVotedUsefulByLength": 21
  },
  "TdXhmhwwuVhAQBFYVNz7": {
    "id": "TdXhmhwwuVhAQBFYVNz7",
    "name": "SHR - 3.3 ",
    "lastModified": "2023-10-11T16:13:44.461Z",
    "votedUsefulBy": [
      "krikri",
      "sigolene",
      "1st-machine-builder",
      "jonguru",
      "josephklatt",
      "marbleplastics",
      "mr-green",
      "noah-chavez-stedman",
      "resiklo",
      "rhino-machines",
      "sergeyb"
    ],
    "updatedUsefulBy": [
      "krikri",
      "sigolene",
      "1st-machine-builder",
      "jonguru",
      "josephklatt",
      "marbleplastics",
      "mr-green",
      "noah-chavez-stedman",
      "resiklo",
      "rhino-machines",
      "sergeyb",
      "tanate-kittipornpanit"
    ],
    "votedUsefulByLength": 11,
    "currentVotedUsefulByLength": 12
  },
  "a8NmTMAhLgoMezhVq5gl": {
    "id": "a8NmTMAhLgoMezhVq5gl",
    "name": "SPR - 2.3",
    "lastModified": "2023-10-01T14:08:43.479Z",
    "votedUsefulBy": ["cambrooks", "mattia", "sigolene", "abderrazaq"],
    "updatedUsefulBy": [
      "cambrooks",
      "mattia",
      "sigolene",
      "abderrazaq",
      "1st-machine-builder",
      "necolgica",
      "clement-974",
      "josephklatt",
      "le-prodige",
      "mmi",
      "precious-plastic-malaysia",
      "preciousplasticleon",
      "rafal"
    ],
    "votedUsefulByLength": 4,
    "currentVotedUsefulByLength": 13
  },
  "jEzqUhy2lRUM5Zl9nBdR": {
    "id": "jEzqUhy2lRUM5Zl9nBdR",
    "name": "Coaster from coffee waste",
    "lastModified": "2023-09-29T04:32:31.307Z",
    "votedUsefulBy": ["mattia", "sigolene", "lesanz28"],
    "updatedUsefulBy": [
      "mattia",
      "sigolene",
      "lesanz28",
      "2nd-life-lab",
      "asheerrizvi",
      "aziz",
      "distinctiveobjects",
      "fajar",
      "fresky",
      "justmetmc",
      "kaybee_77",
      "khaing-shwe-sin-oo",
      "priscilla-zacharias"
    ],
    "votedUsefulByLength": 3,
    "currentVotedUsefulByLength": 13
  },
  "kWMXkphTm6iFih4ebyVR": {
    "id": "kWMXkphTm6iFih4ebyVR",
    "name": "Shredder 2.1",
    "lastModified": "2023-10-21T15:30:56.528Z",
    "votedUsefulBy": [
      "anny_lopez",
      "neighborjohn",
      "adryadna",
      "rust_dust_resin",
      "mahdigharibi",
      "sigolene"
    ],
    "updatedUsefulBy": [
      "anny_lopez",
      "neighborjohn",
      "adryadna",
      "rust_dust_resin",
      "mahdigharibi",
      "sigolene",
      "mattia",
      "alexgv",
      "carlos-ceballos-",
      "claregeray",
      "cosmic-foundation-of-unification",
      "donaldp",
      "drossstudios",
      "eduardo-de-la-cruz",
      "freaky-trash",
      "green-goblin",
      "gustavo-ogera-malavazi",
      "hapciu",
      "joel-tovar",
      "langoude",
      "marcelaazoubel",
      "mike689",
      "momentus",
      "novis",
      "pabla",
      "papa_lego",
      "patate",
      "pitugiaculli",
      "pppinni",
      "preciousplasticbeta",
      "riki4361",
      "rocky",
      "rostislav",
      "teguh-dwijaya",
      "togusha",
      "tomyalfonso",
      "topolski",
      "veronica-alzate"
    ],
    "votedUsefulByLength": 6,
    "currentVotedUsefulByLength": 38
  }
}
thisismattia commented 12 months ago

Nice one @evakill glad we've spot it 🤙 thank you for sorting it out!