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

convert Repliear to use the row versioning strategy #158

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9d8e3d8
re-write to use the row versioning strategy and rails.
tantaman Nov 9, 2023
4c74663
switch to snapshot isolation
tantaman Nov 9, 2023
aa5f268
update comment id scheme so we can use Rails with it
tantaman Nov 10, 2023
a7ecac1
fix the back button
tantaman Nov 10, 2023
6088cb0
remove more custom comment code
tantaman Nov 10, 2023
e7ae173
remove special case for comment pull
tantaman Nov 10, 2023
557ae19
remove todos from schema, remove irrelevant comments from cvr, factor…
tantaman Nov 13, 2023
2257996
remove extraneous code
tantaman Nov 30, 2023
423e7b9
remove `useExclusiveEffect` and skip sync if tab is unfocused
tantaman Nov 30, 2023
3679ee0
lowercased schemaVersion for replicache_meta
tantaman Nov 30, 2023
de9a16c
rowversion -> version
tantaman Nov 30, 2023
efbf027
cvr -> client_view
tantaman Nov 30, 2023
a35223f
order -> version / client_view_version
tantaman Nov 30, 2023
226b4cf
row_id -> entity_id, row_version -> entity_version, tbl -> entity
tantaman Nov 30, 2023
2b95be4
remove comments related to a different cvr design
tantaman Nov 30, 2023
69bf58b
fix the title of the app. todo -> repliear
tantaman Nov 30, 2023
5148f44
add favicon
tantaman Nov 30, 2023
0d0f259
remove commented out CVR query
tantaman Nov 30, 2023
207657f
update client_view to make progress if many tabs sync at once
tantaman Nov 30, 2023
dd1ffc7
Revert "update client_view to make progress if many tabs sync at once"
tantaman Dec 1, 2023
a541701
update to replicache 14
tantaman Dec 4, 2023
3bb9399
throw error if we fail a mutation twice
tantaman Dec 4, 2023
cfefc45
CVE revision: fast forward on old cookie, maintain mutation consisten…
tantaman Dec 8, 2023
a3a11ac
fetch the old value of the diff from `allIssueMap`
tantaman Dec 8, 2023
8b88baf
fix missing decode in `useQueryState`
tantaman Dec 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

34 changes: 0 additions & 34 deletions .eslintignore

This file was deleted.

51 changes: 0 additions & 51 deletions .eslintrc

This file was deleted.

129 changes: 96 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,46 +1,109 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
vite.config.ts.*

# dependencies
/node_modules
/.pnp
.pnp.js
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# testing
/coverage
# Runtime data
pids
*.pid
*.seed
*.pid.lock

# next.js
/.next/
/out/
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# production
/build
# Coverage directory used by tools like istanbul
coverage
*.lcov

# misc
.DS_Store
*.pem
# nyc test coverage
.nyc_output

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# Bower dependency directory (https://bower.io/)
bower_components

# vercel
.vercel
# node-waf configuration
.lock-wscript

# react-designer
lib
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

#tsc
# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Supabase
**/supabase/.branches
**/supabase/.temp
**/supabase/.env
# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port


.DS_Store
archive.sh
6 changes: 0 additions & 6 deletions .jshintrc

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

34 changes: 0 additions & 34 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions .vscode

This file was deleted.

26 changes: 10 additions & 16 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
MIT License
Copyright 2022 Rocicorp LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
http://www.apache.org/licenses/LICENSE-2.0

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading