mozmeao / snippets-service

Service powering snippets on Firefox's about:home.
https://snippets.mozilla.com
Mozilla Public License 2.0
31 stars 36 forks source link

Convert templates to real models #916

Closed glogiotatidis closed 5 years ago

glogiotatidis commented 5 years ago

Since templates are now code in AS, we can make them code in the service as well. This will allow us to use django's form validation for #655 , use foreign key relationships for the image gallery (#841) and property fix things like #757

Let's investigate how that would look like and that's the best route to follow.

Check

Deployment plan

glogiotatidis commented 5 years ago

Note to self: https://stackoverflow.com/a/21498821

solved the issue with jquery

glogiotatidis commented 5 years ago

Converting to real model is indeed a really good idea.

We have working on in https://github.com/mozmeao/snippets-service/pull/928.

Along this way we decided to go ahead and build the image gallery in #841.

bookshelfdave commented 5 years ago

for prod, can you make another step to remove inkscape when complete:

kubectl into the staging node and install inkscape, required for the migration

bookshelfdave commented 5 years ago

Is there any way to validate the results when in prod?

glogiotatidis commented 5 years ago

for prod, can you make another step to remove inkscape when complete:

kubectl into the staging node and install inkscape, required for the migration

good point. I'll go ahead and kill the migration pod to make sure that it's clean

glogiotatidis commented 5 years ago

Is there any way to validate the results when in prod?

Yes. I'll save replies before after and compare results. Image validation will happen by opening the images and making sure that they appear correctly.

glogiotatidis commented 5 years ago

Staging looks good! \o/

Waiting on LCM team to confirm production deployment

glogiotatidis commented 5 years ago

Waiting on LCM team to confirm production deployment

we're good. i'm working on the production migration

glogiotatidis commented 5 years ago

Production deployment and migration worked flawlessly but the application experienced ten-fold increase in response times on both oregon and frankfurt clusters.

We collected traces using NewRelic's X-Ray and rolled-back the code to restore the service.

glogiotatidis commented 5 years ago

Issue #935 tracks the problem we faced on production.

glogiotatidis commented 5 years ago

Today's update:

Result:

Wins:

This one is done!

bookshelfdave commented 5 years ago

@bensternthal let's keep an eye on snippets CDN costs

bensternthal commented 5 years ago

noted!

glogiotatidis commented 5 years ago

@bensternthal can we get a first estimation on CDN costs for Apr?

bensternthal commented 5 years ago

💰 info sent via email