Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session storage #8

Merged
merged 1 commit into from
May 3, 2021
Merged

Session storage #8

merged 1 commit into from
May 3, 2021

Conversation

MuhammadFarag
Copy link
Contributor

WHY are these changes introduced?

Create a database-based SessionStorage class and use that to set up Context.

WHAT is this pull request doing?

  • Configure in-memory sqlite db for .env.test
  • Create Session model with database migratoins
  • Create DbSessionStorage wrapper around Session model
  • Initialize Context

@MuhammadFarag MuhammadFarag requested a review from a team as a code owner May 3, 2021 07:50
Copy link
Contributor

@Paulinakhew Paulinakhew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of question and nitpicks but looks good!!

.env.testing Outdated
SHOPIFY_API_KEY=test-api-key
SHOPIFY_API_SECRET_KEY=test-secret-key
SCOPES=read_products,write_products
HOST_NAME=www.app-host-name.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change this to something like www.testshop.myshopify.com?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this should probably not have a www. prefix as we generally do not use it across our libraries or documentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is the app host-name not the shop host-name 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhh I see! Maybe we can even do something like

HOST_NAME=12345asdf.ngrok.io

.env.testing Show resolved Hide resolved
README.md Show resolved Hide resolved
.env.testing Outdated Show resolved Hide resolved
app/Models/DbSessionStorage.php Outdated Show resolved Hide resolved
Copy link

@tanema tanema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Paulina's got your back on the few things I noticed.

.env.testing Outdated
SHOPIFY_API_KEY=test-api-key
SHOPIFY_API_SECRET_KEY=test-secret-key
SCOPES=read_products,write_products
HOST_NAME=www.app-host-name.com
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this should probably not have a www. prefix as we generally do not use it across our libraries or documentation

@MuhammadFarag
Copy link
Contributor Author

Thank you for the review @tanema ♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants