SuccessChanges

Summary

  1. Change the Quota model: add a name property: (details)
  2. Change the Quota.owner to Quota.subject: (details)
  3. Refactor SQL scripts to update orders schema: (details)
  4. Change membershipId to orderId in the Readme example. (details)
  5. Reorder SQL schema migrations to handle orders change. (details)
  6. Fix minor index bug. (details)
  7. Merge in Subscription fields: (details)
  8. Migrate quota subscriptions to orders: (details)
  9. Migrate the MembershipMapper to an orderMapper: (details)
  10. Don't initialize totalUsage to 0.0. (details)
  11. Fix a typo with Quota.membershipId, now orderId. (details)
  12. Update the order fixture to include new properties. (details)
  13. Remove memberships from the README. (details)
  14. Migrate the QuotaStore from using membershipId to orderId. (details)
  15. Migrate the OrderStore to accommodate quotas: (details)
  16. Migrate the MembershipQuotasReducer to an OrderQuotasReducer: (details)
  17. Update the OrderMapper to accommodate new properties: (details)
  18. Minor formatting changes. (details)
  19. Migrate the QuotaHelper to use create Orders: (details)
  20. Update the OrderHelper to handle new order details: (details)
  21. Change the orders resource to insert quotas with new properties: (details)
  22. Minor Javadoc update. (details)
  23. Remove the call to register the MembershipResource. (details)
  24. Remove the membership model, list, resource, store, and unit test: (details)
  25. Fix reversed test assertion. (details)
  26. Migrate the QuotaStoreTest to produce orders not memberships: (details)
  27. Migrate the UsageStoreTest to produce orders not memberships: (details)
  28. Remove references to memberships. (details)
Commit d4090b8cf1fd256f270dadf5aa1bfd932648b793 by csj
Change the Quota model: add a name property:
Associates a quota with an order for easier recognition.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/api/Quota.java
Commit 24749f01f9925e3e205e8c622150405858ae0262 by csj
Change the Quota.owner to Quota.subject:
Rename it back given it is the most appropriate name. It get's copied
from Order.subject now, which can be a user or group.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/jdbi/QuotaStore.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/jdbi/MembershipStore.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/resources/OrdersResource.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/resources/QuotasResource.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/ProductHelper.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/QuotaHelper.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/jdbi/UsageStoreTest.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/jdbi/MembershipStoreTest.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/resources/MembershipsResource.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/api/OrderItem.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/resources/UsagesResource.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/MembershipHelper.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/jdbi/UsageStore.java
The file was modifiedsrc/main/resources/db/migrations/V1.1__Create_Quotas_Table.sql
The file was modifiedsrc/main/java/org/dataone/bookkeeper/api/Quota.java
The file was modifiedsrc/main/resources/db/migrations/V1.2__Insert_Standard_Quotas.sql
The file was modifiedsrc/test/java/org/dataone/bookkeeper/jdbi/QuotaStoreTest.java
Commit ae015f578b4493ba7d0760f4977593ae2e7cefb6 by csj
Refactor SQL scripts to update orders schema:
As we use orders to represent subscriptions/memberships, delete the
memberships SQL scripts, and add appropriate attributes to the quotas
and orders tables. Renumber the scripts for flyway migrations.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was addedsrc/main/resources/db/migrations/V1.8__Alter_Orders_Add_Customer_FK.sql
The file was modifiedsrc/main/resources/db/migrations/V1.1__Create_Quotas_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.7__Create_Orders_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.10__Create_Function_Update_Quota_Table_Usage.sql
The file was removedsrc/main/resources/db/migrations/V1.9__Alter_Memberships_Add_Product_FK.sql
The file was removedsrc/main/resources/db/migrations/V1.4__Alter_Quotas_Add_Membership_FK.sql
The file was addedsrc/main/resources/db/migrations/V1.5__Create_Products_Table.sql
The file was removedsrc/main/resources/db/migrations/V1.15__Alter_Quotas_Add_Unique_Constraint_MembershipId_QuotaType.sql
The file was removedsrc/main/resources/db/migrations/V1.5__Create_Customers_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.3__Alter_Quotas_Add_Order_FK.sql
The file was removedsrc/main/resources/db/migrations/V1.11__Alter_Orders_Add_Customer_FK.sql
The file was removedsrc/main/resources/db/migrations/V1.8__Insert_Standard_Products.sql
The file was removedsrc/main/resources/db/migrations/V1.3__Create_Memberships_Table.sql
The file was removedsrc/main/resources/db/migrations/V1.6__Alter_Memberships_Add_Customer_FK.sql
The file was removedsrc/main/resources/db/migrations/V1.7__Create_Products_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.11__Alter_Usages_Add_Unique_Constraint.sql
The file was removedsrc/main/resources/db/migrations/V1.13__Create_Function_Update_Quota_Table_Usage.sql
The file was removedsrc/main/resources/db/migrations/V1.14__Alter_Usages_Add_Unique_Constraint.sql
The file was addedsrc/main/resources/db/migrations/V1.12__Alter_Quotas_Add_Unique_Constraint_OrderId_QuotaType.sql
The file was removedsrc/main/resources/db/migrations/V1.12__Create_Usages_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.9__Create_Usages_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.4__Create_Customers_Table.sql
The file was removedsrc/main/resources/db/migrations/V1.10__Create_Orders_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.6__Insert_Standard_Products.sql
The file was modifiedsrc/main/resources/db/migrations/V1.2__Insert_Standard_Quotas.sql
Commit 1ac1d13344ac9279ee3cab7244acd6825d1909c2 by csj
Change membershipId to orderId in the Readme example.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedREADME.rst
Commit cfc9e49ca31e3f3be59febb199fd19bef4e11190 by csj
Reorder SQL schema migrations to handle orders change.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was removedsrc/main/resources/db/migrations/V1.3__Alter_Quotas_Add_Order_FK.sql
The file was removedsrc/main/resources/db/migrations/V1.7__Create_Orders_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.7__Alter_Quotas_Add_Order_FK.sql
The file was addedsrc/main/resources/db/migrations/V1.4__Create_Products_Table.sql
The file was removedsrc/main/resources/db/migrations/V1.6__Insert_Standard_Products.sql
The file was removedsrc/main/resources/db/migrations/V1.4__Create_Customers_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.5__Insert_Standard_Products.sql
The file was removedsrc/main/resources/db/migrations/V1.5__Create_Products_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.6__Create_Orders_Table.sql
The file was addedsrc/main/resources/db/migrations/V1.3__Create_Customers_Table.sql
Commit 25d247ec4f1e2606f23c541b1742e2eb3c31c72a by csj
Fix minor index bug.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/resources/db/migrations/V1.6__Create_Orders_Table.sql
Commit b50d41e4975ae08833c2fbb54cc554bb9c55dffc by csj
Merge in Subscription fields:
Add the subject, name, seriesId, startDate, and endDate fields to the
Order model in lieu of a subscription. Update the status enum to merge
in Subscription status values. Add getters and setters for new fields,
and update the equals() and hashcode() methods. Add JsonProperty
annotations on methods as needed.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/api/Order.java
Commit 4bd29a63b747decf044bb0abf55d2721a3372018 by csj
Migrate quota subscriptions to orders:
Change the subscriptionId property to orderId, and update the getter and
setter methods accordingly.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/api/Quota.java
Commit 521b2dca2a76f2b6d92c57b51109d3c64cda935d by csj
Migrate the MembershipMapper to an orderMapper:
Map Order objects correctly, adding support for the subject, name,
seriesId, startDate, endDate, and quotas fields.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was removedsrc/main/java/org/dataone/bookkeeper/jdbi/mappers/MembershipMapper.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/jdbi/mappers/OrderMapper.java
Commit 72bddaae625d248ce493769a086d0884e62f541f by csj
Don't initialize totalUsage to 0.0.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/api/Quota.java
Commit 1a618dce08b0607413d1ebc8d269f2499285467c by csj
Fix a typo with Quota.membershipId, now orderId.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/test/java/org/dataone/bookkeeper/EmbeddedPostgresqlTest.java
Commit 3f20099665047114f31ae6d777e34c613516f34e by csj
Update the order fixture to include new properties.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/test/resources/fixtures/order.json
Commit b4246716b0357e3e75bc2c2c431898af87cede6b by csj
Remove memberships from the README.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedREADME.rst
Commit e7522971035edd9ee6cc1c863acef29790a7c7ee by csj
Migrate the QuotaStore from using membershipId to orderId.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/jdbi/QuotaStore.java
Commit 5b9c97b28c0832bc7653a1ea4d465f2f802b4806 by csj
Migrate the OrderStore to accommodate quotas:
Now that orders also represent a paid subscription, update the SQL
SELECT statement to return quotas associated with a given order (if any,
i.e. LEFT JOIN). In the interface SELECT methods, use the OrderMapper
and the OrderQuotasReducer to populate the returned JSON object with an
embedded quota list. For the INSERT and UPDATE operations, add the new
properties that are now part of an order.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/jdbi/OrderStore.java
Commit 032b38c26fbd46329838626c9e24ef961b9334cd by csj
Migrate the MembershipQuotasReducer to an OrderQuotasReducer:
Change the reducer to produce an Order with a list of quotas if quotas
are present in the result set. Otherwise, return a plain Order object.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was removedsrc/main/java/org/dataone/bookkeeper/jdbi/MembershipQuotasReducer.java
The file was addedsrc/main/java/org/dataone/bookkeeper/jdbi/OrderQuotasReducer.java
Commit a1c95fc02a62edbc19371a4c7ea5f89ea0d6a6e7 by csj
Update the OrderMapper to accommodate new properties:
Since the result set may include joined quotas, use table prefixes to
identify columns, and add in the new Order properties to the mapper.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/jdbi/mappers/OrderMapper.java
Commit 47041ff90851118cca999a7d361d74a6996e747a by csj
Minor formatting changes.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/resources/CustomersResource.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/CustomerHelper.java
Commit 256e4f83d2579ab1e6b49cf31c52a149d3e443fa by csj
Migrate the QuotaHelper to use create Orders:
Insert test quotas with order identifiers rather than membership
identifiers, and rename methods to use Orders. Add javadoc. Improve
formatting.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/QuotaHelper.java
Commit b3fef6fa92b83db0de898b57452a225118804811 by csj
Update the OrderHelper to handle new order details:
Migrate the test methods to select, insert, update, and delete orders
with new properties.  Update SELECTs to optionally join quotas into the
orders. Add Javadoc. Improve formatting.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/OrderHelper.java
Commit fc4d0a2fea5f7ceea7b4bcbf675b716e618a4ff9 by csj
Change the orders resource to insert quotas with new properties:
Remove membership insertions. Also set the trialing status and
transitions.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/resources/OrdersResource.java
Commit 91bda569d53b715a7dc495ae72db3109ee9d4c6e by csj
Minor Javadoc update.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/resources/QuotasResource.java
Commit dad47f6e4a5b5ae93911bb0712be955748850c3c by csj
Remove the call to register the MembershipResource.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/java/org/dataone/bookkeeper/Bookkeeper.java
Commit 0edcc727cf150288c3803c40f0f1bb9b19dcebe4 by csj
Remove the membership model, list, resource, store, and unit test:
these are no longer needed with the simplified model where orders
represent subscriptions.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was removedsrc/main/java/org/dataone/bookkeeper/jdbi/MembershipStore.java
The file was removedsrc/main/java/org/dataone/bookkeeper/resources/MembershipsResource.java
The file was removedsrc/main/java/org/dataone/bookkeeper/api/Membership.java
The file was removedsrc/main/java/org/dataone/bookkeeper/api/MembershipList.java
The file was removedsrc/test/java/org/dataone/bookkeeper/helpers/MembershipHelper.java
The file was removedsrc/test/java/org/dataone/bookkeeper/jdbi/MembershipStoreTest.java
Commit 801a22b49d81bd0268add972092bcbfdefbecb66 by csj
Fix reversed test assertion.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/test/java/org/dataone/bookkeeper/jdbi/OrderStoreTest.java
Commit 0bddfa7696c36232861906ebb1b7bb2a3b485356 by csj
Migrate the QuotaStoreTest to produce orders not memberships:
Change all tests to build orders, insert orders, etc.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/test/java/org/dataone/bookkeeper/jdbi/QuotaStoreTest.java
Commit 9d99e99e08d8e4a76665587342f18b28efe1b4c9 by csj
Migrate the UsageStoreTest to produce orders not memberships:
Change all tests to build orders, insert orders, etc.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/test/java/org/dataone/bookkeeper/jdbi/UsageStoreTest.java
Commit 471a7e468df9df87874e22d303a7dd5eaeb36620 by csj
Remove references to memberships.
refs https://github.com/DataONEorg/bookkeeper/issues/65
The file was modifiedsrc/main/resources/db/migrations/V1.1__Create_Quotas_Table.sql
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/OrderHelper.java
The file was modifiedsrc/main/java/org/dataone/bookkeeper/api/Quota.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/QuotaHelper.java
The file was modifiedsrc/test/java/org/dataone/bookkeeper/helpers/UsageHelper.java