Giter Club home page Giter Club logo

sodexo-tg-bot's People

Contributors

misterrnobe avatar roasher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sodexo-tg-bot's Issues

Forget to spend money reminder

Leroy Merlin fills our card up to N rubbles each month. If one forget to spend it there money will be lost.
User need to have an ability to enable a gently reminder, who will send few notifications

  • in the middle of the month if sum is greater than N/2.
  • (last working day of the month - 3 days) if sum is greater than 1000 rub.
  • (last working day of the month - 1 days) if sum is greater than 500 rub.
  • last working day of the month if sum is greater than 500 rub.

Fix test

Current unit test are failing, they should be fixed

Deploy from GitHub actions does not work

Describe the bug
GitHub actions does not deploy built image to a server

To Reproduce
Steps to reproduce the behavior:

  1. Create a tag in GitHub
  2. Wait for the triggered job buillds docker image
  3. Deploy fails

Expected behavior
After an image is build it should be deployed to the server.
Conisder adding a deploy job which could be launched manually

Synchronous scheduling

Problem

Current scheduled operation is asynchronous so that a new task may start before the previous one is finished.

Possible solution

Infinite Multi task generator usage

Unexpected message when subscribed to notifications

Describe the bug
When a user subscribes to balance change notification at first time they receive whole balance history

To Reproduce
Steps to reproduce the behavior:

  1. Clear chat data in a database
  2. Start conversation with the bot and type a card number
  3. Subscribe to notifications
  4. Receive the message

Expected behavior
Only acceptance message should be received

Screenshots
image

Balance history

API server contains information about balance history. It's a good idea to include this information in the bot

License

A license should be chosen and added

Localization

Text replies are hard-coded now, they should be moved to some config file. Also multi language support should be available

GitHub actions pipeline support

Pipeline is not implemented yet, it's a good idea to do it.
The following steps should be included:

  • build and push docker image
  • deploy docker image
    The next ones are optional:
  • SonarScan
  • codestyle check

Indexes verification and creation

Application performs a lot of findByChatId operations but indexes existence verification and creation is not implemented. This may hurt performance

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.