Code Monkey home page Code Monkey logo

praise's People

Contributors

big-gray-al avatar carlosq96 avatar cquinterom096 avatar dependabot[bot] avatar graial avatar kkatusic avatar kristoferlund avatar manikandan-raman avatar marthendalnunes avatar mattyg avatar mhmdksh avatar mohammadranjbarz avatar nebs-dev avatar pkretzschmar avatar saucecodee avatar snyk-bot avatar ujwalkumar1995 avatar vyvy-vi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

praise's Issues

Add fields to praise export

Add

ID - Praise mongodb id
QUANTIFIER USER [X] - The "username" of the quantifier.

"Username":

  1. Discord account name, or
  2. Telegram account name, or
  3. Ethereum address

Change

QUANT SCORE [X] -> SCORE [X]
TO -> TO USER ACCOUNT
FROM-> FROM USER ACCOUNT

Centralise Db connection params

The database connection parameters currently have to be duplicated in

/.env
/api/.env
/discord-bot/.env

Those params should only be in /.env.

Multiple calls to dotenv are allowed. Include top level .env from /api and /discord-bot.

Upgrading the settings system

Backend, data model and api:

  • Allow this setting to be changed while quantifying: yes/no, true/false
  • Data types:
    • Number
    • String
    • Textarea
    • Boolean
    • File

Frontend, settings interface:

  • Generate form fields based on type
  • Perform type checking

Frontend and backend, helper functions to get values with correct data types.

Pseudonymous avatars should only be displayed on quantification screen

Setting PRAISE_QUANTIFY_RECEIVER_PSEUDONYMS to true means that the identities of praise receivers should be hidden from quantifiers.

Real avatar images should be replaced with anonymous user icons. The UserAvatar component already supports hiding real image.

Currently the setting affect all pages, it should affect the quantifier screen: QuantifyPeriodReceiver/QuantifyPeriodReceiverPage.tsx

Add encryption at rest to mongodb

From discord chat
The mongo docs say you can only encrypt a freshly created db (not an existing, unencrypted db).
@Vyvy-vi have you started working on this yet, &/or have a plan yet?
kristofer — 01/31/2022
@graial Encryption is not something we have decided yet to implement. What would be the pros and cons?
graial — 01/31/2022
main pro of any encryption at rest for data is that if an attacker got in to the server, theyd have access to the the db/data, with encryption, they wouldnt be able to read/manipulate it
encrypting the db was a suggestion vy made on the notion I posted a couple weeks back
Main con is that it might be a pain to transfer the existing data over to the new encrpted one

https://docs.mongodb.com/manual/tutorial/configure-encryption/

DB migrations

From @mattyg

Will there be a need to upgrade the schema of an existing databases? If so, we should include a migration script to update the settings schema but keeping their values. Perhaps using a migration tool like migrate-mongoose

Document nvm dev requirement

Document in README that developers should install nvm to manage their node versions and either configure their shell to automatically switch node versions based on a .nvmrc file or run nvm use when entering the project directory to switch node versions.

Disallow removal of active quantifiers from pool

If a quantifier is given some assignments for a period, an admin user can still remove their role as QUANTIFIER via the Quantifier Pool page.

This would leave the data in an improper state, where the quantifier still has a bunch of assignments, but is unable to complete them.

We should implement a back-end check and front-end dialog to prevent removal of active quantifiers from the pool, or handle re-assigning their assignments.

Ensure historical praise scores are accurate

If the setting PRAISE_QUANTIFY_DUPLICATE_PRAISE_PERCENTAGE is modified, it will cause historical praise score calculations to reflect the updated setting.

Do we want historical praise score calculations to change if settings are updated? If necessary, we can implement one of the solutions outlined below to ensure historical praise calculations remain static.

Options

  • store praise score calculation in db, based on the settings at the time of calculation, rather than re-calculating on every fetch
  • store settings history in db, calculate praise based on settings at the time of praise given, rather than current settings

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.