Ugoflip / ugoflip.github.io

0 stars 0 forks source link

[fairness] Configure 2 fairness websites - 1 for staging and 1 for production #4

Open Siko91 opened 1 year ago

Siko91 commented 1 year ago

tasks

aayushi-c247 commented 1 year ago

@Siko91 @johneyo We have deployed 2 diff repo for production and staging. This repo used for Production server Production server: GitHub url: https://github.com/Ugoflip/ugoflip.github.io Live url: ugoflip.github.io

Staging Server: Github url: https://github.com/Ugoflip/staging Live link: https://ugoflip.github.io/staging/

aayushi-c247 commented 1 year ago

@Siko91 @johneyo

clean up unnecessary data from both repos - they should only keep the data that matches their purpose (no staging data on production!) (Done) create a new GITHUB user for automated pushes to both repos (Done) update the backend ENV files to push to the appropriate repository, using the new user (Done) make sure that the production fairness tool does not lose any production data that it already has (Done) make sure that the production fairness tool receives all production data that has not been pushed to it yet (Done) make sure that nothing, other than the production backend, pushes changes to the production fairness tool (Done) re-deploy the staging & production backend (Done)

Siko91 commented 1 year ago

Aha. What are the links to the websites? Where do I click to see the results of your work?

aayushi-c247 commented 1 year ago

Aha. What are the links to the websites? Production link: https://ugoflip.github.io/ Staging link: https://ugoflip.github.io/staging/ Where do I click to see the results of your work?

Client on above link and check server .env file update and discord group i have share gmail and github account details shared

Siko91 commented 1 year ago

Please specify what you have done on these tasks, to mark them "Done":

Siko91 commented 1 year ago

@aayushij

aayushi-c247 commented 1 year ago

@Siko91 we have clean up staging data on production server and also staging server as well. i have Written script to fetch all game id, name and tsx value all data update server. Kindly check below SS i have attach script code

https://tinyurl.com/23dcydq2 https://tinyurl.com/244agn85 https://tinyurl.com/2xuotefm

Siko91 commented 1 year ago

clean up unnecessary data from both repos - they should only keep the data that matches their purpose (no staging data on production!) (Done)

You removed staging data, but you did not remove testing data done on Production. This was particularly my fault (for not writing it clearly) and also partially @johneyo's fault for not telling you (he was present when we were discussing the need to do that).

make sure that nothing, other than the production backend, pushes changes to the production fairness tool (Done)

What steps did you make to ensure this? Did you just mark it "Done" after simply assuming that it's not actually happening? Please look at the commit history. Commits exist. Which software pushed them? How did they end up there?

re-deploy the staging & production backend (Done)

This cannot be marked as complete until production backend has pushed all of its games to the fairness tools. If there aren't such commits, it most likely means that either the work wasn't done or it wasn't deployed to production.

aayushi-c247 commented 1 year ago

You removed staging data, but you did not remove testing data done on Production. Yes i have removed testing data form production server and only thous ticket available in production server

This cannot be marked as complete until production backend has pushed all of its games to the fairness tools.
If there aren't such commits, it most likely means that either the work wasn't done or it wasn't deployed to production.

Can you explain which are thing pending because according to my understanding i have deploy both repo diff branch and URL also remove testing data remove.