Skip to content
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

panic: query datoms: nil iterator #1310

Closed
juligasa opened this issue Mar 1, 2023 · 4 comments
Closed

panic: query datoms: nil iterator #1310

juligasa opened this issue Mar 1, 2023 · 4 comments
Assignees
Labels
priority: high Critical to have scope: daemon Daemon and p2p networking type: bug Something isn't working

Comments

@juligasa
Copy link
Collaborator

juligasa commented Mar 1, 2023

Describe the bug
Oftentimes, the daemon crashed with this error

panic: query datoms: nil iterator

goroutine 134171 [running]:
mintter/backend/daemon/api/accounts/v1alpha.(*Server).getAccount(0xc007410300?, 0x0?, 0x0?, {0x0, 0x0, 0x0})
        /home/julio/Documents/mintter/plz-out/tmp/backend/mintterd._build/backend/daemon/api/accounts/v1alpha/accounts.go:124 +0x7c8
mintter/backend/daemon/api/accounts/v1alpha.(*Server).GetAccount.func1()
        /home/julio/Documents/mintter/plz-out/tmp/backend/mintterd._build/backend/daemon/api/accounts/v1alpha/accounts.go:83 +0xfb
mintter/backend/vcs/sqlitevcs.(*Conn).WithTx(0xc007410300, 0xf8?, 0xc003a49938)
        /home/julio/Documents/mintter/plz-out/tmp/backend/mintterd._build/backend/vcs/sqlitevcs/sqlitevcs.go:240 +0x86
mintter/backend/daemon/api/accounts/v1alpha.(*Server).GetAccount(0xc000b424a0, {0x1b3acf8, 0xc004f05f20}, 0xd41a76?)
        /home/julio/Documents/mintter/plz-out/tmp/backend/mintterd._build/backend/daemon/api/accounts/v1alpha/accounts.go:77 +0x58c
mintter/backend/genproto/accounts/v1alpha._Accounts_GetAccount_Handler({0x1524ca0?, 0xc000b424a0}, {0x1b3acf8, 0xc004f05f20}, 0xc004bc4070, 0x0)
        /home/julio/Documents/mintter/plz-out/tmp/backend/mintterd._build/backend/genproto/accounts/v1alpha/accounts_grpc.pb.go:117 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000efe000, {0x1b45ca0, 0xc000dda990}, 0xc000910a20, 0xc000efa8a0, 0x2512640, 0x0)
        /home/julio/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:1340 +0xd23
google.golang.org/grpc.(*Server).handleStream(0xc000efe000, {0x1b45ca0, 0xc000dda990}, 0xc000910a20, 0x0)
        /home/julio/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:1713 +0xa2f
google.golang.org/grpc.(*Server).serveStreams.func1.2()
        /home/julio/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
        /home/julio/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:963 +0x28a
panic: query datoms: nil iterator

To Reproduce Steps to reproduce the behavior:

  1. Unzip this mtt folder in a local folder (lets say in ~/.mttowner)
  2. Run the daemon in that folder
./dev run-backend -repo-path /home/julio/.mttowner

With the lightclient tool, run

mintterclient --add-site https://site.test.mintter.com

The daemon should crash

Expected behavior A clear and concise description of what you expected to
happen.
Not panicking

@juligasa juligasa added type: bug Something isn't working scope: daemon Daemon and p2p networking priority: high Critical to have go labels Mar 1, 2023
@juligasa juligasa changed the title daemon panics panic: query datoms: nil iterator Mar 1, 2023
@GaboHBeaumont
Copy link

Is this same error? this one appears when I edit and publish a documetn with no changes.
image

@GaboHBeaumont
Copy link

2023-03-02T10:52:10.951+0100 DEBUG mintter/network mttnet/site.go:665 Headers found, meaning this call should be proxied and authentication will take place at the remote site {"x-mintter-site-hostname": "https://site.test.mintter.com"}2023-03-02T10:52:10.951+0100 DEBUG mintter/network mttnet/site.go:802 Remote site contacted, now try to call a remote function {"Function name": "RedeemInviteToken"}2023-03-02T10:52:11.052+0100 DEBUG mintter/network mttnet/site.go:821 Remote call finished successfully {"First param type": "ptr", "Second param type": "interface"}2023-03-02T10:52:11.063+0100 DEBUG mintter/network mttnet/site.go:654 Check permissions {"Site hostname": "", "remoteHostname": "https://site.test.mintter.com"}2023-03-02T10:52:11.063+0100 DEBUG mintter/network mttnet/site.go:665 Headers found, meaning this call should be proxied and authentication will take place at the remote site {"x-mintter-site-hostname": "https://site.test.mintter.com"}2023-03-02T10:52:11.064+0100 DEBUG mintter/network mttnet/site.go:802 Remote site contacted, now try to call a remote function {"Function name": "ListMembers"}2023-03-02T10:52:11.064+0100 DEBUG mintter/network mttnet/site.go:654 Check permissions {"Site hostname": "", "remoteHostname": "https://site.test.mintter.com"}2023-03-02T10:52:11.064+0100 DEBUG mintter/network mttnet/site.go:665 Headers found, meaning this call should be proxied and authentication will take place at the remote site {"x-mintter-site-hostname": "https://site.test.mintter.com"}2023-03-02T10:52:11.064+0100 DEBUG mintter/network mttnet/site.go:802 Remote site contacted, now try to call a remote function {"Function name": "GetSiteInfo"}2023-03-02T10:52:11.150+0100 DEBUG mintter/network mttnet/site.go:821 Remote call finished successfully {"First param type": "ptr", "Second param type": "interface"}2023-03-02T10:52:11.150+0100 DEBUG mintter/network mttnet/site.go:821 Remote call finished successfully {"First param type": "ptr", "Second param type": "interface"}panic: query datoms: nil iteratorgoroutine 66541 [running]:mintter/backend/daemon/api/accounts/v1alpha.(*Server).getAccount(0xc002efef80?, 0x0?, 0x0?, {0x0, 0x0, 0x0}) /Users/satoshi/Workspace/mintter/plz-out/tmp/backend/mintterd._build/backend/daemon/api/accounts/v1alpha/accounts.go:124 +0x7c8mintter/backend/daemon/api/accounts/v1alpha.(*Server).GetAccount.func1() /Users/satoshi/Workspace/mintter/plz-out/tmp/backend/mintterd._build/backend/daemon/api/accounts/v1alpha/accounts.go:83 +0xfbmintter/backend/vcs/sqlitevcs.(*Conn).WithTx(0xc002efef80, 0xb8?, 0xc00408d938) /Users/satoshi/Workspace/mintter/plz-out/tmp/backend/mintterd._build/backend/vcs/sqlitevcs/sqlitevcs.go:240 +0x86mintter/backend/daemon/api/accounts/v1alpha.(*Server).GetAccount(0xc000181880, {0x101740ab8, 0xc00173c5a0}, 0xc0034ee228?) /Users/satoshi/Workspace/mintter/plz-out/tmp/backend/mintterd._build/backend/daemon/api/accounts/v1alpha/accounts.go:77 +0x58cmintter/backend/genproto/accounts/v1alpha._Accounts_GetAccount_Handler({0x101140ae0?, 0xc000181880}, {0x101740ab8, 0xc00173c5a0}, 0xc00055f3b0, 0x0) /Users/satoshi/Workspace/mintter/plz-out/tmp/backend/mintterd._build/backend/genproto/accounts/v1alpha/accounts_grpc.pb.go:117 +0x170google.golang.org/grpc.(*Server).processUnaryRPC(0xc000ea4000, {0x10174b920, 0xc000b43c20}, 0xc004f2a480, 0xc000ea22d0, 0x10217ae60, 0x0) /Users/satoshi/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:1340 +0xd23google.golang.org/grpc.(*Server).handleStream(0xc000ea4000, {0x10174b920, 0xc000b43c20}, 0xc004f2a480, 0x0) /Users/satoshi/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:1713 +0xa2fgoogle.golang.org/grpc.(*Server).serveStreams.func1.2() /Users/satoshi/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:965 +0x98created by google.golang.org/grpc.(*Server).serveStreams.func1 /Users/satoshi/go/pkg/mod/google.golang.org/grpc@v1.51.0/server.go:963 +0x28a

burdiyan added a commit that referenced this issue Mar 3, 2023
@burdiyan
Copy link
Collaborator

burdiyan commented Mar 3, 2023

This should be fixed here: 7781221. At least it shouldn't panic. I don't understand why the actual error happens sometimes. Probably due to some situation when some account ID is inserted into the database, but the account information was not synced yet.

@burdiyan
Copy link
Collaborator

burdiyan commented Mar 3, 2023

Please reopen if still happens.

@burdiyan burdiyan closed this as completed Mar 3, 2023
burdiyan added a commit that referenced this issue Mar 3, 2023
horacioh pushed a commit that referenced this issue Mar 15, 2023
horacioh added a commit that referenced this issue Mar 15, 2023
* fix(editor): avoid editor jump

* fix: state machines predictableActionArguments argument

* fix(frontend): remove main machine and branch sync

    sync with staging
    Main machine wiped out, still WIP
    No sites, no double NavMenu seperator
    Gateway: server-rendered CID paths
    Site add form
    Send x-mintter-site-hostname header
    Publication path lowercase and save correctly
    Fixes query client/invalidation for sites add
    invite token expiration
    WIP: invite tokens and p2p init
    Fixed hooks for site add+remove
    Re-Publishing Workflow
    Publish/Unpublish UI and hooks
    Sites management now using new buf client
    App Query Client Singleton
    dummy remote p2p site calls
    local sites (add, list remove) mockups

* wip conversations

- change context value
- add comments styling inside activity section
- you can add comments to conversations now

* remove cconversation context error

* Sites management now using new buf client

* register p2p (mttnet) methods locally as well

* wip: calling .well-known

* wip: cleaning warnings

* wip: using more secure random generator

* update protos  with changes in documentation

* Init mttnet server sepparately

* Check permissions on remote (local mocked) calls

* update protos according to PR comments

* wip: publish + unpublish + list mockups

* get and update remote site info

* Fixes to listing and unpublishing webPubs

* ListWebPublicationRecords

* Make a local site by default. Just for tests

* change default site name

* Site Settings invite+members UI revamp

* fix(frontend): empty list button draft creation

the button was opening a new window after creating a draft. that's not the desired experience.
we do change the route of the same window after the draft is created.

* get path mocked

* fix: handle errors when getpath not found

* token only

* Invite workflow frontend fixes

* Log RPC from front end client

* Cleaner publish/share dialog when published

* Invalidate queries to affect other windows

* Provide member_role=editor when inviting

* useNavigation for new draft

* update document on duplicate path (and same docID)

* redeem token (if provided) in add site

* basic invite page on gateway

* gateway fix missing env, log mode

* Add Site invite token + error handling

* update slate packages

* highlight conversation context wip

* remove panelSend event causing infinite loop

* Clicking Conv Bubble opens Activity

* Unpublish only if you are site owner or doc author

* List members get members and delete member mockups

* adding site owner to the db at init time

* fix shared build (ts-ignore)

* fix share button dissappear

* fix draft scroll error

* docs(tauri): merge docs from #1202

Closes #1202

* defining well-known message in doc

* If not site flag provided daemon is a regular node

* serve .well-known content

* wip: connect with site via p2p when adding it

* feat(comments): comments first iteration done

- rendering selectors on publications
- list conversation on activity panel
- render selectors on conversation item
- reply to conversations
- proper transform between api <-> slate

* resolve conflicts with master

* fix tsc build

* wip: remote calls with hardcoded redeemtoken

* proxy add site with no hardcodings

* proxy all calls to remote site if headers found.

* wip: harden tokens and improve debug comments

* check path is a valid URL

* Send site hostname header

* SSR web publish with pretty path

* Work around tauri dots in params

* flag 2 create random acc. w/out user intervention

* Supports publishing home page

* Web gateway to support home screen

* proxy ListWebPublicationRecords for each site

* hostname with mandatory protocol (http(s)://)

* forward metadata in proxied calls

* fix automatic acc. generation when already exists

* Start supporting protocol in site hostname

* manually cherry-pick conversations styles

this is from the Nostr branch

* Gateway Env variable: GW_NEXT_HOST

* Gateway env: GW_GPRC_ENDPOINT

* wip: include sync comments

* Dockerfile to containerize the daemon

* wip:contanerize gateway

* fix(backend/ipfs): switch to inmemory datastore again

Trying to fix database locking issues.

Closes #1200.

* fix mintter.com website with hardcoded document

* add .vercel to gitignore

* fixes on env variables for gateway

* fix envs again

* pasing transport tpo getPublication

* forcing gateway as host

* clientside again for gateway

* fix metadata formatted date

* fix comments workflow + design

* Nostr experiment to staging (behind flag)

* nostr true by default

* update mintter homepage pub version

* update frontend deps

* testing ssr on ids page

* testing nodejs runtime on ids

* rollback to clientside rendering

* wip: tests

* wip: site tests

* site db schema

* enable wss in build (wip)

* add click selector click event

* fix(comments): control better when to add/remove conversations

* fix(comments): bidirectional highlight for conversations

* fix(comments): scrollIntoView working in both publication and conversations

* gw vercel check and render client side pub

* docker file for nextjs site self host

* server side render 100%

* fetch redirect mode

* vercel test

* 😵‍💫

* 🤠

* 👾

* 🌈 interceptor

* 📢

* gw: server render by default

* Site title

* Clean up unused settings tabs

* Improvements to site members

* Fixing site hostname labels + urls

* sites db schema (no breaking change yet)

* protect early exits to not panic

* fix: not error on normal shutdown

* lint

* remove references table and renaming

* create site transactions

* fix: wrong token table

* wip: improve token sql functions

* wip:sql tests

* change database compatibility

* well known api draft

* remove the need to build shared pkg

* Revert "remove the need to build shared pkg"

This reverts commit 8e729d2.

* fix build step for gw

* setup env variables correctly

* wip: add member

* force vercel to use gateway.mintter.com

* set new homepage doc for gateway

* force gateway url

* 🤌

* 😔

* 😢

* 😢😢

* allow unpublish by path

* Build13/drag and drop (#1308)

* fix(tauri): fix daemon flags pasing WIP

* added drag and drop hook implementation. added drag context to blocktools

* added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook

* drag and drop WIP

- rebase with build13/staging
- code cleanup
- create custom drag context utils

* moved dragover handling to phrasing props. added style handling to drag machine

* blocktools inside blocks

* added prevention of dragging parent inside it's children list

* added drag attributes and handlers to editor blocks and blocktools

* moved ondragover to paragraph. added editor parameter to drag machine

* wip

* added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group

* rebase with build13/staging

* fix validate

---------

Co-authored-by: Horacio Herrera <hi@horacioh.com>

* remove log interceptor from prod transform

* enable everyone to edit enything

* remove publication blocktools red background

* feat(frontend): drag and drop working

    added checking and removing empty groups
    Merge branch 'build13/staging' into build13/drag-and-drop
    disabled drag and drop if editor in dragging state. removed comments and console logs. renamed selection catching plugin
    added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group
    moved ondragover to paragraph. added editor parameter to drag machine
    added prevention of dragging parent inside it's children list
    blocktools inside blocks
    moved dragover handling to phrasing props. added style handling to drag machine
    added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook
    added drag and drop hook implementation. added drag context to blocktools

* wip: site member management in db

* fix: consume grpc port properly

* fix nextjs responses

* fix: returning proper role on existing accounts

* log ids params for debugging

* check documentId params check

* wip: change site opts in db

* wip: managing sites in the db

* wip: web publication records db (not tested)

* prevent same document to be published twice

* unpublish by docid (+ version) only

* wip: web publication db testing (no references)

* wip: account for references in published documents

* Sites db persistence (breaking change)

* wip: commenting

* replace existing site

* tokens db

* site members db

* sites db

* update site info (title+description)

* publish and unpublish db

* linting

* change compatibility date and linting

* allow adding a site without token (and no owner)

* fix site tests

* test proxy members

* wip: site info test

* fix(frontend): fix publishing redirection

it was not happening because we were not calling the appropiate actions

* test(backend): add tests for block revisions

Add test to reproduce #1301. Seems to be working fine though.

* Error adding a site without token if not an owner

* version id provided on unpublish

* Security pack own words support comma

* fix(frontend): add zomm in and out

* Publish/share dialog: Fix url of home path

* gw: author server rendered

* gw: env port for development

* gw: well known endpoint for nextjs

* wip: site deployment documentation

* disable nostr

* documentID unique key + test suite update

* add author data on comments

* added top and bottom lines when dragging based on the paths

* wip: site syncs-in provided documents only

* fix(frontend): fix drag and drop in Mac

* some frontend fixes

* site syncing tests

* wip:syncing comments

* fix(frontend): fix publish share popover alignment

* fix: multiple identical site members

* wip: less autorelay verbosity

* site only syncs out with site members

* wip on new sidepanel

* feat(frontend): add activepanel to sidepanele

* fixed bug where blocks would be dragged to top when the bottom line was showed. added nested groups code (WIP)

* add footer import on sites page

* take into account lists in tests

* change site bio when updating site info

* wip: publish tests

* wip: improve site tests

* wip: make linter happy

* wip: unify db constraints

* error getpath on blank path + improve test suite

* fix(backend): don't panic on nil datoms iterator

Closes #1310.

* Citations and Versions sidebar prototype

* test(rust): fix clippy lint issues

* wip: improve error messages on document finding

* check multiple devices in parallel when publishing

* identify supporting materials by ID + Version

* fix(front): provide supporting material properly

* wip: linting and messaging

* look at nextjs .well-known path when adding a site

* site deployment

* fix(frontend): minor fixes on dragging

* fix(frontend): transformation to api now respects revision

solves #1301

* unify hover effect + cleanup imports

* make script portable

* fix(frontend): remove shared api client calls

* uncomment correct index page ids

* member management for owners, remove member

* gw: Remove client side fallback

* Gateway Dev port fix

* gw: query for author on page slug

* settings + share hostname display no protocol

* publish success message

* republish notification

* not exposing daemon http ports to the outside

* remove the ERROR

* fix(gateway): fix gateway wrong calls

* cleanup imports

* remove citation numbers for now

* using a more portable curl command to deploy sites

* wip: some comments on difficult-to-follow code

* fix mnemonics call in onboarding

* Fix double https in invite sender

* add logs to production build

* upgrade to the more advanced script

* wip: not defining latest to pull from repo

* gw: Minor logging / cleanup

* citations number in blocks

* Improving sites settings UI

* not exposing addresses over http in regular nodes

* wip: test docker build action

* fix: docker action

* Include site docker images in nightlies 6 AM

* fix(gateway): special site header for sites

* fix(frontend): slim down nextjs-docker size

* update static copy route in docker

* chore(build): make protobuf JS codegen up to date

* Fix broken republish message

* Invalidate doc list on publish

* Site title, doc title, SEO metadata

* Gateway Pretty Path not found

* Fix: take version into account in getpath

* WebPublish to use the open version

* Fix silent error dialog

* feat(frontend): new ui structure for the gateway code

* fix(build): fix rust CI issues

Removing workspace-hack, because it seems to be causing issues, and seems like it's not worth the effort at this point.

* Improve panel titles

* app sidebar toggle behavior in footer

* conversation floating button is gone

* fix(build): remove wasi-mtt from the rust workspace

* fix frontend package installs

---------

Co-authored-by: Horacio Herrera <hi@horacioh.com>
Co-authored-by: Eric Vicenti <eric@vicenti.net>
Co-authored-by: juligasa <11684004+juligasa@users.noreply.github.com>
Co-authored-by: Iskak Toltay <36269035+IsKEK@users.noreply.github.com>
Co-authored-by: IsKEK <iskaktoltay@gmail.com>
horacioh added a commit that referenced this issue Apr 5, 2023
* register p2p (mttnet) methods locally as well

* wip: calling .well-known

* wip: cleaning warnings

* wip: using more secure random generator

* update protos  with changes in documentation

* Init mttnet server sepparately

* Check permissions on remote (local mocked) calls

* update protos according to PR comments

* wip: publish + unpublish + list mockups

* get and update remote site info

* Fixes to listing and unpublishing webPubs

* ListWebPublicationRecords

* Make a local site by default. Just for tests

* change default site name

* Site Settings invite+members UI revamp

* fix(frontend): empty list button draft creation

the button was opening a new window after creating a draft. that's not the desired experience.
we do change the route of the same window after the draft is created.

* get path mocked

* fix: handle errors when getpath not found

* token only

* Invite workflow frontend fixes

* Log RPC from front end client

* Cleaner publish/share dialog when published

* Invalidate queries to affect other windows

* Provide member_role=editor when inviting

* useNavigation for new draft

* update document on duplicate path (and same docID)

* redeem token (if provided) in add site

* basic invite page on gateway

* gateway fix missing env, log mode

* Add Site invite token + error handling

* update slate packages

* highlight conversation context wip

* remove panelSend event causing infinite loop

* Clicking Conv Bubble opens Activity

* Unpublish only if you are site owner or doc author

* List members get members and delete member mockups

* adding site owner to the db at init time

* fix shared build (ts-ignore)

* fix share button dissappear

* fix draft scroll error

* docs(tauri): merge docs from #1202

Closes #1202

* defining well-known message in doc

* If not site flag provided daemon is a regular node

* serve .well-known content

* wip: connect with site via p2p when adding it

* feat(comments): comments first iteration done

- rendering selectors on publications
- list conversation on activity panel
- render selectors on conversation item
- reply to conversations
- proper transform between api <-> slate

* resolve conflicts with master

* fix tsc build

* wip: remote calls with hardcoded redeemtoken

* proxy add site with no hardcodings

* proxy all calls to remote site if headers found.

* wip: harden tokens and improve debug comments

* check path is a valid URL

* Send site hostname header

* SSR web publish with pretty path

* Work around tauri dots in params

* flag 2 create random acc. w/out user intervention

* Supports publishing home page

* Web gateway to support home screen

* proxy ListWebPublicationRecords for each site

* hostname with mandatory protocol (http(s)://)

* forward metadata in proxied calls

* fix automatic acc. generation when already exists

* Start supporting protocol in site hostname

* manually cherry-pick conversations styles

this is from the Nostr branch

* Gateway Env variable: GW_NEXT_HOST

* Gateway env: GW_GPRC_ENDPOINT

* wip: include sync comments

* Dockerfile to containerize the daemon

* wip:contanerize gateway

* fix(backend/ipfs): switch to inmemory datastore again

Trying to fix database locking issues.

Closes #1200.

* fix mintter.com website with hardcoded document

* add .vercel to gitignore

* fixes on env variables for gateway

* fix envs again

* pasing transport tpo getPublication

* forcing gateway as host

* clientside again for gateway

* fix metadata formatted date

* fix comments workflow + design

* Nostr experiment to staging (behind flag)

* nostr true by default

* update mintter homepage pub version

* update frontend deps

* testing ssr on ids page

* testing nodejs runtime on ids

* rollback to clientside rendering

* wip: tests

* wip: site tests

* site db schema

* enable wss in build (wip)

* add click selector click event

* fix(comments): control better when to add/remove conversations

* fix(comments): bidirectional highlight for conversations

* fix(comments): scrollIntoView working in both publication and conversations

* gw vercel check and render client side pub

* docker file for nextjs site self host

* server side render 100%

* fetch redirect mode

* vercel test

* 😵‍💫

* 🤠

* 👾

* 🌈 interceptor

* 📢

* gw: server render by default

* Site title

* Clean up unused settings tabs

* Improvements to site members

* Fixing site hostname labels + urls

* sites db schema (no breaking change yet)

* protect early exits to not panic

* fix: not error on normal shutdown

* lint

* remove references table and renaming

* create site transactions

* fix: wrong token table

* wip: improve token sql functions

* wip:sql tests

* change database compatibility

* well known api draft

* remove the need to build shared pkg

* Revert "remove the need to build shared pkg"

This reverts commit 8e729d2.

* fix build step for gw

* setup env variables correctly

* wip: add member

* force vercel to use gateway.mintter.com

* set new homepage doc for gateway

* force gateway url

* 🤌

* 😔

* 😢

* 😢😢

* allow unpublish by path

* Build13/drag and drop (#1308)

* fix(tauri): fix daemon flags pasing WIP

* added drag and drop hook implementation. added drag context to blocktools

* added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook

* drag and drop WIP

- rebase with build13/staging
- code cleanup
- create custom drag context utils

* moved dragover handling to phrasing props. added style handling to drag machine

* blocktools inside blocks

* added prevention of dragging parent inside it's children list

* added drag attributes and handlers to editor blocks and blocktools

* moved ondragover to paragraph. added editor parameter to drag machine

* wip

* added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group

* rebase with build13/staging

* fix validate

---------

Co-authored-by: Horacio Herrera <hi@horacioh.com>

* remove log interceptor from prod transform

* enable everyone to edit enything

* remove publication blocktools red background

* feat(frontend): drag and drop working

    added checking and removing empty groups
    Merge branch 'build13/staging' into build13/drag-and-drop
    disabled drag and drop if editor in dragging state. removed comments and console logs. renamed selection catching plugin
    added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group
    moved ondragover to paragraph. added editor parameter to drag machine
    added prevention of dragging parent inside it's children list
    blocktools inside blocks
    moved dragover handling to phrasing props. added style handling to drag machine
    added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook
    added drag and drop hook implementation. added drag context to blocktools

* wip: site member management in db

* fix: consume grpc port properly

* fix nextjs responses

* fix: returning proper role on existing accounts

* log ids params for debugging

* check documentId params check

* wip: change site opts in db

* wip: managing sites in the db

* wip: web publication records db (not tested)

* prevent same document to be published twice

* unpublish by docid (+ version) only

* wip: web publication db testing (no references)

* wip: account for references in published documents

* Sites db persistence (breaking change)

* wip: commenting

* replace existing site

* tokens db

* site members db

* sites db

* update site info (title+description)

* publish and unpublish db

* linting

* change compatibility date and linting

* allow adding a site without token (and no owner)

* fix site tests

* test proxy members

* wip: site info test

* fix(frontend): fix publishing redirection

it was not happening because we were not calling the appropiate actions

* test(backend): add tests for block revisions

Add test to reproduce #1301. Seems to be working fine though.

* Error adding a site without token if not an owner

* version id provided on unpublish

* Security pack own words support comma

* fix(frontend): add zomm in and out

* Publish/share dialog: Fix url of home path

* gw: author server rendered

* gw: env port for development

* gw: well known endpoint for nextjs

* wip: site deployment documentation

* disable nostr

* documentID unique key + test suite update

* add author data on comments

* added top and bottom lines when dragging based on the paths

* wip: site syncs-in provided documents only

* fix(frontend): fix drag and drop in Mac

* some frontend fixes

* site syncing tests

* wip:syncing comments

* fix(frontend): fix publish share popover alignment

* fix: multiple identical site members

* wip: less autorelay verbosity

* site only syncs out with site members

* wip on new sidepanel

* feat(frontend): add activepanel to sidepanele

* fixed bug where blocks would be dragged to top when the bottom line was showed. added nested groups code (WIP)

* add footer import on sites page

* take into account lists in tests

* change site bio when updating site info

* wip: publish tests

* wip: improve site tests

* wip: make linter happy

* wip: unify db constraints

* error getpath on blank path + improve test suite

* fix(backend): don't panic on nil datoms iterator

Closes #1310.

* Citations and Versions sidebar prototype

* test(rust): fix clippy lint issues

* wip: improve error messages on document finding

* check multiple devices in parallel when publishing

* identify supporting materials by ID + Version

* fix(front): provide supporting material properly

* wip: linting and messaging

* look at nextjs .well-known path when adding a site

* site deployment

* fix(frontend): minor fixes on dragging

* fix(frontend): transformation to api now respects revision

solves #1301

* unify hover effect + cleanup imports

* make script portable

* fix(frontend): remove shared api client calls

* uncomment correct index page ids

* member management for owners, remove member

* gw: Remove client side fallback

* Gateway Dev port fix

* gw: query for author on page slug

* settings + share hostname display no protocol

* publish success message

* republish notification

* not exposing daemon http ports to the outside

* remove the ERROR

* added nested groups drag and drop functionality

* fix(gateway): fix gateway wrong calls

* cleanup imports

* remove citation numbers for now

* using a more portable curl command to deploy sites

* wip: some comments on difficult-to-follow code

* fix mnemonics call in onboarding

* Fix double https in invite sender

* add logs to production build

* upgrade to the more advanced script

* wip: not defining latest to pull from repo

* gw: Minor logging / cleanup

* citations number in blocks

* Improving sites settings UI

* not exposing addresses over http in regular nodes

* wip: test docker build action

* fix: docker action

* Include site docker images in nightlies 6 AM

* add temporary docker nightly releases in staging

* added styling for nested group drag

* added nested groups drag and drop functionality

* merge with master

* fixed github conflicts

* fixed last conflicts

* WIP fixing the nested group line

* fixed nested group dragging for blocks with multiple children not on the same level

* cleanup after mege

* commit after pnpm format

* WIP dragover on list items

* a working version with dragover on list items. WIP, nested group dragging lines don't appear immediately

* fixed nested group dragging. works immediately on drag over now.

* added styling for nester group dragging. removed comments and logs

* removed unused code, comments and logs. pnpm format

* ran pnpm format

* fmt

---------

Co-authored-by: juligasa <11684004+juligasa@users.noreply.github.com>
Co-authored-by: Eric Vicenti <eric@vicenti.net>
Co-authored-by: Horacio Herrera <hi@horacioh.com>
Co-authored-by: Alexandr Burdiyan <burdiyan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high Critical to have scope: daemon Daemon and p2p networking type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants