Sequelize queries #234
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
Osprey
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
resilience
Tom's Wishlist
type: bug
type: discussion
type: error handling
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/spee.ch#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sequelize-queries"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Oops, I typed all these up a few days ago and never hit submit on the review.
@ -1,4 +1,31 @@module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, ARRAY, DECIMAL, DOUBLE }) => {const logger = require('winston');Would it make sense for this to be
Channelrather thanCertificate?@ -2,0 +2,4 @@const NO_CHANNEL = 'NO_CHANNEL';function sortResult (result, longId) {let claimIndex;This function is called
sortResultbut it appears to return a short Id.@ -2,0 +2,4 @@const NO_CLAIM = 'NO_CLAIM';function sortResult (result, longId) {let claimIndex;This function seems to contain code that could be shared with the other
sortResult.(This function has same naming problem as well.)
@ -147,7 +147,8 @@ module.exports = (app) => {// route to get a short claim id from long claim Idapp.get('/api/shortClaimId/:longId/:name', ({ originalUrl, ip, params }, res) => {I'm guessing this code isn't actually missing a colon or it wouldn't work, but what's the difference here?
@ -1,4 +1,31 @@module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, ARRAY, DECIMAL, DOUBLE }) => {const logger = require('winston');I think Certificate is accurate because it is actually storing the certificate claims from the blockchain. We have a Channel table for the Channels that are created on spee.ch. It parallels how we have a Claim table for all the stream claims in the blockchain (i guess this table should be Streams to be fully parallel) and a File table for all the files held locally by spee.ch.
@ -147,7 +147,8 @@ module.exports = (app) => {// route to get a short claim id from long claim Idapp.get('/api/shortClaimId/:longId/:name', ({ originalUrl, ip, params }, res) => {the line break was accidental; difference was just adding Claim because getShortClaimId... is now a method of Claim
@ -1,4 +1,31 @@module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, ARRAY, DECIMAL, DOUBLE }) => {const logger = require('winston');@billbitt got it