GithubHelp home page GithubHelp logo

Comments (14)

affine-issue-bot avatar affine-issue-bot commented on July 4, 2024

Issue Status: 🆕 *Untriaged

*🆕 Untriaged

The team has not yet reviewed the issue. We usually do it within one business day.
Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.

from affine.

LIHAQ avatar LIHAQ commented on July 4, 2024

Me too

from affine.

forehalo avatar forehalo commented on July 4, 2024

first of all, the data won't be touched at all during the upgrading

you could run yarn prisma studio in your container and expose port 5555 to host server, to check is the data there, especially the User, Snapshot tables

from affine.

zoverdoser avatar zoverdoser commented on July 4, 2024

@forehalo How to restore my data to affine?

from affine.

forehalo avatar forehalo commented on July 4, 2024

@forehalo How to restore my data to affine?

make sure you signed in the correct account which owns the workspace that you said "lost". the records in User table may help

from affine.

LIHAQ avatar LIHAQ commented on July 4, 2024

@forehalo How to restore my data to affine?

make sure you signed in the correct account which owns the workspace that you said "lost". the records in User table may help

@forehalo @zoverdoser
I looked at the snapshot using yarn prisma studio
image
A workspace was indeed added today
image
Finally, I adjusted the workspace permission in the WorkspaceUserPermission, selected the original workspace, and returned to normal
image

from affine.

zoverdoser avatar zoverdoser commented on July 4, 2024

@forehalo How to restore my data to affine?

make sure you signed in the correct account which owns the workspace that you said "lost". the records in User table may help

I'm sure I signed in the correct account. There are 2 users in the records in User table, which I created before. But the create time of my account has been updated. Looks like a new account had been created and replaced my account.
a7ada8ff3057c1d4ee66b7e60954631

from affine.

LIHAQ avatar LIHAQ commented on July 4, 2024

@forehalo How to restore my data to affine?

make sure you signed in the correct account which owns the workspace that you said "lost". the records in User table may help

I'm sure I signed in the correct account. There are 2 users in the records in User table, which I created before. But the create time of my account has been updated. Looks like a new account had been created and replaced my account. a7ada8ff3057c1d4ee66b7e60954631

@zoverdoser
I'm a new user like you
image
you can try to select the specified user and owned workspace in the WorkspaceUserPermission, and you should be able to resume work
image

from affine.

zoverdoser avatar zoverdoser commented on July 4, 2024

@LIHAQ All the 'user's value in the WorkspaceUserPermission are set to my account. But my workspaces still don't show up in my affine.
80b4817923e4b962a32be60df27a609

from affine.

LIHAQ avatar LIHAQ commented on July 4, 2024

@LIHAQ All the 'user's value in the WorkspaceUserPermission are set to my account. But my workspaces still don't show up in my affine. 80b4817923e4b962a32be60df27a609

First, check whether the original workspace exists
image
If so, check the User and workspace in the WorkspaceUserPermission, respectively
image
If not, then I can't help much here, because it is different from the problem I encountered.

from affine.

zoverdoser avatar zoverdoser commented on July 4, 2024

@LIHAQ The original workspaces exist.
image
But I logged in to my affine, and found this.
image

from affine.

forehalo avatar forehalo commented on July 4, 2024

@LIHAQ The original workspaces exist. image But I logged in to my affine, and found this. image

there should be one record with type 99 in WorkspaceUserPermission table for each workspace

for example

// User table

id email
user a [email protected]

// Workspace table

id
workspace a

// WorkspaceUserPermission table

id workspaceId userId type
p1 workspace a user a 99

from affine.

zoverdoser avatar zoverdoser commented on July 4, 2024

@forehalo This works. I manually added some records and got back my workspaces. Type 10 should be workspace members.

from affine.

forehalo avatar forehalo commented on July 4, 2024

good to hear it! I will double check the upgrading logic to avoid such condition later on

from affine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.