Organizations:
Memberships:
Membership.change_membership_to!
changes the User membership from one Organization to another
that leaves Organizations without users
users cannot interact with old orders!
Memberships:
method Membership.change_membership_to!
Organizations
The change will allow:
For data consistency all orders need an organization
More memos will be added to actions performed (nice to have)
The migration left:
For data consistency all orders need an organization
The fix will be:
in db:
memos will be added to actions performed (nice to have)
the active org will determine UX and code mode: offline or online
User will only work on offline organization
Manage Area will only show offline postings (the code also will impose this restriction) and NOT inactive online ones
the posting process is already separated, will be kept as is
User can only
(those actions are permitted if the order of the posting have credits available)
undercovers the code will create a new online org with the new client_id and a membership active
for jobs this is equivalent as to changing from one online organization to another (memos!)
the new org will be the active one
an online organization allows a posting from another org if:
this logic will be applied when
publishing, copying and activating a posting
and the user
changes orgs in the payment page (I don't work here anymore)
if the active organization is online the manage area can show postings of
the user can then publish, copy and activate postings
and undercovers a Posting + Order Transfer to active organization will occur
When an User changes from one online organization to another by publishing, copying or activating postings
a new order will be created,
the old order will not be changed (as it might need billing still)!
The billing cycle works based on orders, will be kept as is
an overall view of those are:
Pair programming: let's split the work to increase team knowledge
Q&A are welcome