wtcplatform / wtcplatform.github.io

0 stars 0 forks source link

Instead of voting manually, let aws lambda do that #4

Open wtcplatform opened 2 months ago

wtcplatform commented 2 months ago
  1. Create AWS lambda function to vote, update states(the format is given in README)
  2. Arrange AWS lambda functions(vote, update states, update firestore)
  3. Make sure they are working

The key concerning is that I cannot check if they work okay until I put them in production. I expect 10 hours and a lot of errors with this approach.

Abstracting away functions may offer easier maintainability, but it also takes time. I'm not quite sure how many people can manage and succeed this system without writing documents. Probably not possible.

It actually provides the best usability, far better than that of command line(Naoki could not understand the system)

I try to stick with the current approach.

wtcplatform commented 2 months ago

Additional requirements

  1. Check #votes in the uploaded votedest xlsx is less than the currently available number of votes.
wtcplatform commented 2 months ago

ざっくり1000票は超えないようにと声かけていたが、スケーラブルではないので、使用可能票数をstatusに追加したうえで、翌月はそれを参照してチェックする。(ただ問題は、システムが更新されてアカウントの利用期限が1年に制限された場合に、使用停止になるアカウントが出てくるから先月の利用可能票数と今月の利用可能票数が乖離してしまうこと。) そのため、月初めにstep functionを走らせたい。