Skip to content

Move Posters Into Separate Database#9

Open
fahmed10 wants to merge 20 commits intomasterfrom
db-split
Open

Move Posters Into Separate Database#9
fahmed10 wants to merge 20 commits intomasterfrom
db-split

Conversation

@fahmed10
Copy link
Copy Markdown

  • Moved posters into a separate database

Copy link
Copy Markdown
Member

@cengique cengique left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some small issues

README.md Outdated
password: '', // left blank; filled in after login

judgesDB: 'DBname',
postersDB: 'DBname',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should be read from the configuration database

README.md Outdated
@@ -121,6 +121,7 @@ export const environment = {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these fields should probably be removed as the login is taken from user

console.warn('[getPosters] posters_json is invalid.');
return [];
}
let posterDocs = await new PouchDB(`${environment.couch.protocol}://${environment.couch.username}:${environment.couch.password}@${environment.couch.host}:${environment.couch.port}/${environment.couch.postersDB}`).allDocs({ include_docs: true });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read the name for postersDB from configuration instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants