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

fix: Display product by order ID product list view #456

Merged
merged 5 commits into from
Dec 9, 2022
Merged

Conversation

PruthiviRaj27
Copy link
Contributor

Changes done

  • Added Order field in a local database
  • changed the primary key from the id field to the order field

Reason for the changes

  • Store list UI and Available courses UI should both display as same order as in web
    Fixes #.

@@ -122,7 +122,8 @@ private static Entity addPrice(Schema schema) {

private static Entity addProduct(Schema schema) {
Entity product = schema.addEntity("Product");
product.addLongProperty("id").primaryKey();
product.addLongProperty("order").primaryKey();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be added as primary key

@@ -107,9 +109,9 @@ public void onLoadFinished(Loader<List<Product>> loader, List<Product> products)
getLoaderManager().destroyLoader(loader.getId());

} else {
deleteAndInsertProductsInDB(products);
Copy link
Contributor

Choose a reason for hiding this comment

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

.

@Karthik-0 Karthik-0 merged commit eb9cd74 into master Dec 9, 2022
@delete-merged-branch delete-merged-branch bot deleted the productByOrder branch December 9, 2022 06:56
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.

None yet

2 participants