- 06 Mar, 2024 40 commits
-
-
Romain Courteaud authored
* test: always create open order before trying to allocate * define subscription prices on Sale Trade Condition Prices are defined on Supply Line inside Sale Trade Condition. Drop prices from Subscription Condition. Instead, link the Subscription Condition to a Sale Trade Condition. Apply the Sale Trade Condition on the created Open Sale Order. Stop duplicating properties from the Subscription Condition to the created Subscription Request. Payment is managed by the 'payment' category, and not the language. This allows to remove all '==zh' conditions. Instead, use custom Sale Trade Condition. * The new versions do not include any price informations. It is needed to create new Trade Condition which inherite from those versions. Update preference to use those latest trade conditions. * rename couscous trade condition * remove zh templates * XXX do not approve computer by default TODO: create open order related to the computer usage * drop useless requestComputeNodeRegistration workflow transition This transition does nothing. * approve computer again * add business_application base category on Hosting Subscription Module * Revert "slapos_cloud: XXX do not approve computer by default" This reverts commit 53f61021. * drop open/personal allocation_scope * open personal * allocation scope is meaningless to restrict allocation permission * add follow_up category on Compute Node To attach to a project * require a project reference when requesting a compute node * requesting a compute node requires a project * increase error verbosity * stop using shadow to allocate instance Use project only * set follow up on Instance Tree and Software Instance portal type * requesting an instance tree requires a project * assert project reference is provided * propagate follow up when requesting instance * requesting an instance requires a project * add follow_up accessor on compute partition * no need for follow_up on Compute Partition * directly search follow_up value on parent Compute Node * use new related key format * drop source_administration from Compute Node * drop source_administration on Compute Node * drop source_administration from Compute Node * Software Installation drop destination_section and use follow_up * stop setting role/member on Assignment by default * requesting an instance tree need a project reference * add SlapOSVirtualMasterConstraint XXX TODO fix broken TALES expression which prevent entering invaludated/suspended * configure SlapOSVirtualMasterConstraint on most slapos cloud portal types XXX TODO check if some are missing * SlapOSVirtualMasterConstraint need f#+=!$ TALES expression * drop ComputerNetwork_getSoftwareReleaseAllocableState source_administration is not used anymore on Compute Node * source_administration is not used anymore on Compute Node * drop transfer from another Project * drop transfer from another Project * drop transfer from another Project * drop transfer from another Project * drop allocation_scope/open categories * drop allocation_scope/open categories * move test function to mixin * drop ERP5Type_getSecurityCategoryFromAssignmentDestinationClientOrganisation * add SlapOSVirtualMasterSourceProjectConstraint * force source_project accessors when using SlapOSVirtualMasterSourceProjectConstraint * use instance/computer project in the security mapping * test use production/manager to request compute node * allocation_scope/open/public and friend do not exist anymore * only allocate on allocation_scope/open * only allocate on allocation_scope/open * SlapOSVirtualMasterSourceProjectConstraint requires source_project or destination_project * really check source/destination_project... * set compute node default allocation scope to open by default * ensure created Support Request is linked to a Project * drop request_destroy action * disable action if instance tree already has the expected state * move instance action to slapos_panel * move instance tree action to slapos_panel * fix default image usage * drop person.requestOrganisation * only search validated software product/release * add InstanceTree_getSoftwareProduct * do not require open order for allocation * drp audit_validation_workflow * search for Software Product Release Variation * XXX XXX disable crm alarms * drop ComputePartition_getCustomAllocationParameterDict This is a hack incompatible with virtual master standalone logic. Better design is needed * continue to hack on cloud contract * stop catching NotImplementedError * reindex Compute Partition when changing aggregate on Software Instance * Allocation Supply Module draft * allocation supply is... a supply * draft Allocation Supply Line/Cell * Allocation Supply Line view * Allocation Supply Line * SlapOSVirtualMasterSourceProjectConstraint on Allocation Supply * show allocation supply state * InstanceTree_getSoftwareProduct also return release and type variations * check Allocation Supply to filter where allocation can be done * improve Allocation Supply form * add Instance Node portal type * use the allocation supply start date to filter not yet activated * only use Software Product on Allocation Supply Line * configure Allocation Supply Cell predicate * test Allocation Supply predicate * add Project_getSoftwareProductPredicateList * show Allocation Supply destination * Allocation Supply Line are never used as predicate * allocate slave on instance from the same instance tree * method to request and allocate slave instance from an instance tree * add Remote Node portal type It will be used to create cross master allocation * missing workflow on Remote Node * return nothing is no Software Product is found * check if remote instance is allocated * propagate Remote Node requests * define destination_project/section on Remote Node * Remote Node can also be defined on Allocation Supply * test requesting Remote Slave * allow remote allocation on an uniq hardcoded partition * add Remote Node view * do not require Software Installation for Remote Node * add SlaposRemoteNodeConstraint * add SlaposInstanceNodeConstraint * starts moving test to virtual master design * also search allocation supply by node * can not predicate test on aggregate Aggregate is not acquired from Supply to Cell * Allocation Supply need an aggregated Node * AllocationSupplyConstraint * _makeComplexComputeNode need a project * _makeSoftwareRelease url * project on compute node * only return Software Instance related Compute Partition * project needed in test * no requestTransfer anymore * project needed * no source_administration * person need right assignment * open/personal does not exist anymore * drop organisation_slap_interface_workflow Security is only based on project now. Organisation will only be used by accountants * only project admin can create Computer Network * drop the idea of project owner Project will be products sold on the store * project needed in test * assignment needed to touch compute node * project needed in compute node / instance * project needed in test Allocation Supply is now needed... * person can not request project anymore * do not sort security base category when generating local roles Otherwise, it is not possible to ensure source_section/function and destination/function generate the same local role * no need for SlapOSVirtualMasterConstraint on Computer Computer are not used for now * drip upgrade_scope * no need to search a Software Product if there is no url_string * only search compute node from the same project * manually filter Allocation Supply by Compute Node * drop not needed log * commit module business_application * fix SLA tests * preallocate test data this will break many tests... * one day, I'll stop using boolean as argument... * fixup test * test compute network sla * Computer Network creation requires a project reference * use the jump to access Computer Network related Compute Nodes * drop source_administration on Computer Network Only project is used now * drop person.requestSite * fix Computer Network creation test * fix requestComputeNode tests * ensure Compute Node has no related project security group * instance has project based security group * fix user security group test * stop using _simulateScript * drop slapos organisation * test: factorise accountable project creation * bootstrap accountable instance in test * SlapOSTestCaseMixin set ledger on created Sale Invoice * SlapOSTestCaseMixin: factorize Sale Supply creation * test do not hardcode price * drop Item_getCurrentProjectValue * test: drop unused functions * test: create a bank account source payment on the trade condition * test: create a organisation linked to the person if needed * reinstall slapos_subscription_request * drop subscription_request dependency It creates unresolvable dependency * only propagate Instance Tree parameters to the Software/Slave Instance only if an Open Sale Order exists * ensure that alarm propagate parameters of orphaned Instance Tree * drop usage of Subscription Request * check the Subscription Request instead of the Cloud Contract * drop checkCloudContract method * Subscription Request are invalidated after Open Order is created * test: create project by doing a subscription request * do not allocate on a Compute Node without any Subscription * test: no need to manually trigger alarm * test: no need to manually trigger stepCallSlaposAssertInstanceTreeSuccessorAlarm * test: new parameter * test: keep compatibility with previous addProject * test: bypass Service_getSubscriptionStatus * test: use Person_addVirtualMaster to create project * test: login as user to request the instance * test: login as user before doing the request * test: currency is required to create a Virtual Master * constraint: Remote Node has busy partition without related Software Instance * cleanup request when instance is not subscribed yet * stop instance tree propagation on instance_slap_interface_workflow Some alarm call request directly on the Instance Tree (this is expected) * rename Service_getSubscriptionStatus to Item_getSubscriptionStatus * drop not needed workflow interaction * reduce some alarms frequency Interaction workflow are needed to speed up everything * add Base_reindexAndSenseAlarm * add interactions to speed up allocation Use Base_reindexAndSenseAlarm, to ensure object is reindexed, in order to be handled by the alarm * test: no need to manually call alarms Interaction workflow will trigger them * and fix wrong usage of Base_reindexAndSenseAlarm * propagate Slave Instance on Remote Node * update xml * fix InstanceTree_assertSuccessor tests * fixup slapos_free_compute_partition tests * more slapos_free_compute_partition tests * return todestroy status when instance tree is destroyed * fixup tests for slapos_garbage_collect_destroyed_root_tree * fixup slapos_update_compute_node_capacity_scope tests * fixup slapos_stop_collect_instance tests * fixup slapos_garbage_collect_non_allocated_root_tree tests * fixup slapos_cloud_invalidate_destroyed_instance tests * tests: prevent test to impact other tests * test: commit transaction before end of test * test: compatibility with _makeComplexComputeNode * test: fixup remote node creation * test: allow to disable alarm when validation a allocation supply * test: drop reference to an outdated alarm * test: Token creation is allowed to Production users * add One Time Virtual Master Access Token portal type Needed for compatibility with the compute node deploy script * add slaos_cloud_garbage_collect_one_time_virtual_master_access_token * trigger alarm once per day * use optional_variation to configure the Allocation Supply matrixbox * drop support request template preference * drop my_preferred_support_request_template * stop using getPreferredSupportRequestTemplate * drop Subscription Condition usage * break Base_getSupportRequestInProgress Use causality category instead of aggregate, to link the Ticket to the context document (instance, node, ...). Aggregate must be used to define the item of the movement resource. Break the parameters and use the context to define the causality value. * use causality to link the Ticket to the context document * XXX disable person.notify & person.requestSupport I don't get why there are 2 transitions for now. * drop ComputerNetwork_viewComputeNodeList * drop notify and requestSupport transitions They have been replaced by python script and alarms * test: person.notify has been dropped * drop slapos_crm_regularisation_request_template * Do not allow user to change the release/type/shared status * no need to use a tag if context is not reindexed * allow to force software change * speed up Base_reindexAndSenseAlarm execution * drop my_preferred_default_pre_payment_template * drop default_pre_payment_subscription_invoice_template * drop getPreferredAggregatedSubscriptionSaleTradeCondition * test: drop unused functions * drop preferred_aggregated_sale_trade_condition * drop preferred_aggregated_sale_trade_condition * test: drop reference to slapos_aggregated_trade_condition_v3 * test: drop test from dropped interaction * test: role is not required on a Person * test: do not invalidate instance to not unlink * test: create Trade Condition when Project is accountable * drop slapos_crm_web_message_template * drop my_preferred_web_message_template * drop template_pre_payment_subscription_sale_invoice_transaction * drop preferred_default_pre_payment_subscription_invoice_template * drop slapos_accounting_instance_delivery_line_template * drop slapos_aggregated_consumption_trade_condition * drop preferred_aggregated_consumption_sale_trade_condition * drop unused template * drop template_computer_model * drop template_hosting_subscription * drop template_software_installation * drop template_compute_node * drop template_instance_tree * drop template_software_instance * drop template_member * drop drop template_software_instance * drop template_software_instance * drop template_software_instance * add afterClone scripts * test: check remote node parameters propagation * try to create an upgrade decision for a remote instance * test: add checkRemoteInstanceUnallocation method * XXX stop invalidating Slave Instance TODO: Instance on Remote Node must propagate their destruction, before being invalidated * instance must be invalidated before unallocating it * drop not needed script * invalidate Slave Instance allocation on a Compute Node * trigger invalidation as soon as an Instance is destroyed * alarm must visit allocated Slave Instance to invalidate them * report software url of the linked instance, even if it is in destroyed_state / invalidated * test: slave are not directly invalidated as soon as it is destroyed * propagate remote node destruction * do not crash if no instance is found * ExactMatch * drop comments * keep compatibility with project_guid sla * allow to propagate a single instance * add subordination category on Remote Node * try to wait for previous alarms to finish before triggering a new one * priority 3 * do not call activeSense concurrently * prevent activeSense to be called concurrently * reduce number of activities * do not loop * drop preferred_cloud_contract_enabled * stop using hateoas web site * change the skin selection to register * test: create needed bank account
-
Romain Courteaud authored
* drop open/personal allocation_scope * allocation_scope/open/public and friend do not exist anymore * drop slap_add_compute_node page * drop slap_project_list page * change status gadget to support parameter configured on the gadget field * drop slap_project_view page * drop slap_transfer_compute_node * drop slap_compute_node_view page * drop slap_compute_node_revoke_certificate page * drop compute_node_request_certificate page * drop not implemented update_allocation_scope action on compute node * drop not implemented update_category action on compute node * drop slap_compute_node_list page * drop slap_ticket_list page * drop slap_add_ticket page * use parameters as if they were configured on the gadget field * drop support request view page * drop web message view * drop slap_add_related_event page * drop service_list page * drop Software Release view * drop Software Product view * drop software installation creation * move SoftwareInstallation_getSoftwareReleaseInformation * drop slap_select_software_product/release pages * drop slap_software_installation_view page * drop slap_destroy_software_installation page * instance tree actions moved to slapos_panel * drop slap_add_instance_tree page * accept parameters as provided by GadgetField * drop instance tree view action * only check accessible instances * drop gadget_erp5_page_slap_instance_tree_view * drop slap_software_instance_view page * drop person.requestOrganisation * do not delete all categories on Credential Request and set destination_project * revert: restore WebSection_newCredentialRequest as previously * drop close ticket * drop SoftwareProduct_getSoftwareReleaseAsHateoas * drop Upgrade Decision view * drop Computer Network views * drop Computer Network scripts * drop add_organisation page * update renderjs_oss modification date * fixup rebase * drop Compute Node Token previous implementation * erp5_web_renderjs_ui | RJS is managed by erp5_web_renderjs_ui bt5 * move most stuff to slapos_jio_before_deletion Keep slapos_jio minimal to simplify the rebase on the files to keep * keep status gadget * forgot to drop actions * restore label_listbox_field * restore status gadget first rendering onLoop must be fixed probably * status gadget portal _type is provided by the python script * do not mess with cursor used by browser it only confuses users * do not display links without href * disable gadget status onLoop Instead of jio.get, the paramers must provide the url to query, otherwise, it is not possible to use this gadget in the full ERP5JS * reintroduce all stuff from slapos_jio_before_deletion my branch is not ready to drop everything * fixup rebase * drop files moved to portal_skins * move to slapos_panel
-
Romain Courteaud authored
* drop not needed condition * factorize some code * test: always create open order before trying to allocate * define subscription prices on Sale Trade Condition Prices are defined on Supply Line inside Sale Trade Condition. Drop prices from Subscription Condition. Instead, link the Subscription Condition to a Sale Trade Condition. Apply the Sale Trade Condition on the created Open Sale Order. Stop duplicating properties from the Subscription Condition to the created Subscription Request. Payment is managed by the 'payment' category, and not the language. This allows to remove all '==zh' conditions. Instead, use custom Sale Trade Condition. * use explicit id to improve understanding of all paths Clarify trade condition title * add new trade condition versions The new versions do not include any price informations. It is needed to create new Trade Condition which inherite from those versions. Update preference to use those latest trade conditions. * rename couscous trade condition * change subscription price. Do not defined it as ttc Try to understand why price is not always copied * trigger compute node open order creation * subscription scenario needs project now * project is needed when requesting an instance * hardcode automated ledger category for the newly created sale packing list * hardcode automated ledger category for the newly created accounting transactions * automated ledger path * add ledger to the accounting template * only add a project assignment for the existing admin user * create normal user with the project customer assignment * update cdn subscription test project reference needed * add project for chinese subscription * project needed for scenario tests * all Subscription/Trial object must be linked to a Project * test: user need to be linked to a project * propagate source project * delivery/movement must use source_project instead of follow_up * set source_project on event * delivery/movement must use source_project instead of follow_up * use source_project instead of follow_up * use source_project instead of follow_up * test set server allocation_scope/open * Subscription COndition uses follow_up to link to the Project * add missing source_project base category on Subscription Request XXX Subscription Request must inherit this from ticket instead of defining all of this manually * Subscription COndition uses follow to link to Project * also add destination_project on Subscription Request to ensure constraint can be triggered * fix user account assignment creation from SubscriptionRequest * create software product/release in test * improve software product/release * expect Sale Packing List to use a Software Product * use Software Product as resource * drop audit from Subscription Request * DROP slapos_sbuscription_request Only for lazy me to simplify grep usage * Subscription Request is a ticket like Credential Request * restore subscription_request_workflow as ticket_workflow * Subscription Request is not linked to a project * add Subscription Request Constraint * new constraint on Subscription Request * add testSlapOSERP5VirtualMasterSubscriptionRequestScenario * drop outdated subscription scenarios * WIP selling project subscription * forbid Subscription Request which could generate Invoice with a 0 price * do not allow empty quantity on Subscription Request * WIP selling virtual master to customer * improve test Trade Condition * disable existing Subscription Request alarm * create Subscription Request from orphaned Instance Tree * create Open Sale Order from Subscription Request * drop slapos_subscription_request_process_planned * drop slapos_subscription_request_process_draft * drop slapos_subscription_request_process_ordered * drop slapos_subscription_request_process_confirmed * drop slapos_subscription_request_process_started * drop slapos_subscription_request_process_stopped * drop Alarm_processStoppedSubscriptionRequest * test slapos_subscription_request_create_from_orphaned_item * add assert when creating Open Order * alarm to validate submitted Subscription Request * create Subscription Requuest manually from a resource * create Subscription Request for Compute Node * trigger validation as soon as a Subscription Request is submitted * decrease slapos_subscription_request_validate_submitted alarm periodicity * create Subscription Request as soon as a Compute Node is validated * create Subscription Request as soon as Instance Tree is validated * use different trade condition for instance and node * do not generate Subscription for Organisation This work must be done later * constraint: no Organisation as source_section * constraint: fixup empty price check * constraint: destination_section is not required for accounting less subscription * stop creating project from subscription request It is too complex (as it requires to create Trade Condition, Assignment, Project, etc...), and I don't know for now how to make something generic from it. Use a custom action for now. * test that Subscription Request is created from Compute Node * drop SubscriptionRequest_processStopped * drop SubscriptionRequest_processStarted * drop SubscriptionRequest_processOrdered * drop SubscriptionRequest_processConfirmed * drop SubscriptionRequest_processRequest * drop SubscriptionCondition_renderKVMClusterParameter * drop Base_instanceXmlToDict * drop SubscriptionCondition_renderParameter * drop testSlapOSERP5VirtualMasterSubscriptionRequestScenario * ensure Subscription Request is consistent * allow to choose the currency when creating a Subscription Request * try to close the Subscription Request as soon as user paid an invoice * block subscription process if there is no deposit * do not accept new services if the virtual master subscription state is not expected * use Base_reindexAndSenseAlarm * do not set the stop_date on the open order * generate a discount on the first invoice If the open order does not start the same day, do not ask user to pay for those missing days * no need to call OpenSaleOrder_updatePeriod when creating the open order * drop accounting_list action This action hardcodes rapidspace organisation, and has a different logic from the new implementation * drop unused scripts * use the same hosting subscription periodicity per user Ensure all invoices for one user will be created at the same date. Ensure all users do not use the same periodicity, to NOT generated all system invoices on the same date. * do not encode url parameter in tales * allow to check if creating a subscription request is possible * update subscription history ifvalidation is rejected * do not generate discount if the price is 0 * set trade_condition_type on temporary Sale Order * do not set the software release as variation on the Open Order * update xml format * assert trade_condition_type are the same * update Subscription Request view * configure the Subscription Request like a Support Request. Customer as destination_decision * update constraint as categories were inversed on subscription request * fixup variable name * Subscription Request categories were inverted * invert source_project/destination_project * source/destination have been inverted * provice Associate worklist for submitted Subscription Request * drop Subscription Condition * drop ecommerce_dependency * drop Subscription Condition * drop unused SubscriptionRequest_verifyReservationPaymentTransaction * drop SubscriptionRequest_verifyPaymentBalanceIsReady * test: SubscriptionRequest_verifyInstanceIsAllocated was dropped * display Subscription Request's events * create an Event when the Subscription Request can not be validated * drop slapos_update_subscription_request_consistency_state alarm * drop slapos_subscription_request_process_ alarms * test slapos_subscription_request_validate_submitted * use souce_project to find the trade condition no need to trick source/destination project anymore, as trade_condition_type is used * reduce the precision of the discount price The idea is to reduce the risk of bad precision when building the related accounting transactions * drop unused scripts * drop proxy role * drop accounting_module/slapos_pre_payment_template * drop slapos_wechat_pre_payment_template * drop template_wechat_pre_payment_subscription_sale_invoice_transaction * drop template_pre_payment_subscription_sale_invoice_transaction * only try to create subscription request from validated instance/compute node * reduce frenquency of the subscription request creation alarm * test: validate items * only check automated ledger * reduce conflict on modules * allow to provide a default price while creating subscription request * fix getPrice usage * wait for the request indexaction before launching again the alarm * put the item reference in the open order title * set open order title * improve columns on subscription list * ensure no price is found if no accounting is expected * nearly revert ensure no price is found if no accounting is expected Do not care of Sale Supply price. But keep default_price if provided during the migration * skip looking for Sale Supply if not needed * provide more information in the log
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
See nexedi/erp5@a55b0f78
-
Romain Courteaud authored
-
Romain Courteaud authored
* XXX do not install slapos_subscription_request Everything should work without it. It will be rework later. * update configurator test with new bt5/module * slapos_subscription_request bt5 is installed again * do not prevent slapos_category to be updated otherwise, new categories are not installed * test: dropped module * use backup cloudooo nexedi/slapos@a729a677 * test: manye dependencies have been dropped * test: fixup rebase
-
Romain Courteaud authored
* test: always create open order before trying to allocate * check sale trade condition reference * add new trade condition versions The new versions do not include any price informations. It is needed to create new Trade Condition which inherite from those versions. Update preference to use those latest trade conditions. * change business_application values * drop open/personal allocation_scope * slapos member user are not allowed anymore to create compute node * no need to create a dedicated local_roles from compute node source_administration Only slapos manager will handle compute nodes * duplicate test_default_scenario to happily break it * drop friend/personal in new scenario test * all members can allocation on all compute nodes * give user security group based on function (to access some module) and project/function (to access documents) * only a project computer manager can create compute nodes * only project computer manager is assignor on compute node * need a project assignment to create a compute node * drop group security on Instance Tree * drop group security from Software Instance * project member only need Auditor role on it * add customer project assignment * remove source_administration interaction workflow on Compute Node and add follow_up instead * Software Installation: move interaction workflow from destination_section to follow_up * give role on Software Installation to Project Compute Node Manager * shadow user do not need access to Compute Node anymore * only project comp manager can create SOftware Installation * project customer can create software instance * project customer can create instance tree * project people can only view the project module * also check PAS plugins which are not supposed to be activated * drop PAS shadow user plugins * drop shadow access from compute node module * drop shadow from compute node module * drop shadow role from computer module * drop shadow role from person* portal types * drop shadow role on project module * Revert "slapos_erp5: drop PAS shadow user plugins" Needed for accounting * Revert "slapos_erp5: drop shadow role from person* portal types" * drop Modification permissions if document uses an automated ledger * source_administration is not used anymore on Compute Node * drop transfer from another Project * drop allocation_scope/open categories * drop Item_getSecurityCategoryFromMovementDestinationSection * drop Item_getSecurityCategoryFromMovementDestinationSection * drop Item_getSecurityCategoryFromMovementDestinationProject * drop Item_getSecurityCategoryFromMovementDestination * drop SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestinationProject * drop ERP5Type_getSecurityCategoryFromAssignmentDestinationClientOrganisation * switch event/ticket roles to virtual master security * drop Event_getSecurityCategoryFromMovementFollowUpAggregateComputeNodeDestinationSection * drop Event_getSecurityCategoryFromMovementFollowUpAggregateDestination * delete Event_getSecurityCategoryFromMovementFollowUpAggregateDestinationProject * drop Item_getSecurityCategoryFromMovementAggregateDestinationProject * drop Item_getSecurityCategoryFromMovementAggregateDestinationSection * drop Item_getSecurityCategoryFromMovementAggregateDestination * drop Item_getSecurityCategoryFromMovementAggregateComputeNodeDestinationSection * drop SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestination * drop Item_getSecurityCategoryFromMovementLineAggregateDestinationProject * drop Item_getSecurityCategoryFromMovementLineAggregateDestination * drop Item_getSecurityCategoryFromMovementLineAggregateComputeNodeDestinationSection * provide access to Compute Node Manager on Upgrade Decision * delivery/movement must use source_project instead of follow_up * delivery/movement must use source_project instead of follow_up * drop query module security * drop Compute Partition roles It must be visible by all project members * instance of the project can access compute nodes * do not make Credit Card readable * drop data set security * only accountant can create/update Account * add function local_role_group * use function local_role_group on Account * use function local_role_group on account * only accountant can read/write accounting transactions. Ledger is used as write condition * accounting period are only readable/writable by accountant * accounting period are only readable/writable by accountant * provide access on compute node to project customer/production * give read access to project production * provide access to production on software installation * switch admin to production manager in tests * no need for group/role in assignment. Use parent function too * provide access to function/production on Instance Tree * provide access to instance for function/production users * provide access to function/production* on support request * provide access to function/production on event module * provide access to regularisation request to function/production * drop roles for DMS portal types It does not seem used. * provide read/write access to function/production to Computer Network * provide access to function/is to System Event * provide access to function/is on Assignment * provide access to person module * provide read only access to project/customer on software product * provide readonly access to project/customer on software release * test set server allocation_scope to open * provide readonly access for project/customer on accounting module * provide readonly access for project/customer on compute node module * use source/destination_project on event/ticket/delivery * security for Subscription Request * production agent/manager can not create Software Instance * drop slap_add_compute_node page * drop slap_project_list page * drop drop slap_transfer_compute_node (and project_view) * drop slap_compute_node_view page * drop slap_compute_node_revoke_certificate page * drop compute_node_request_certificate page * drop slap_compute_node_list page * drop slap_ticket_list page * configure security on ticket modules * provide read only access to all Service * add a local roles interaction workflow on Support Request * drop slap_add_ticket page * drop support request view page * add local roles interaction workflow on Mail/Web Message * drop slap_add_related_event page * drop service list page * allow production to create software product * configure software production roles and interaction * allow production to create Software Release * configure roles for Software Release * drop software installation creation * show Software Installation to customer * provide read access on software installation module to customer * drop slap_select_software_product/release pages * drop slap_software_installation_view page * drop slap_destroy_software_installation page * instance tree actions moved to slapos_panel * drop slap_add_instance_tree page * drop gadget_erp5_page_slap_instance_tree_view * recalculate Software* local roles when follow up value changes * drop slap_software_instance_view page * try to install slapos_panel in test * drop person.requestOrganisation * WIP move test for scenario without accounting * show latest consistency error * ensure that no unexpected document has been created * required setting a project on a Credential Request * set default project on test web site * ensure that subscription_assignment_category_list is set on the system preference * test: set subscription_assignment_category_list on the system preference * allow customer to see the Subcription Request Module * add hardcoded test to expand an open order * no need to use hardcoded organisation... too check the bank account obj * WIP test for variated resource on open order... * check variation stock * check accounting * check transaction total_price * set the aggregate value on the Open Order Sale * test request scenario with accounting * set the price currency on the trade condition * check kthat correct release/type have been selected * get price from sale supply * drop Software Release security We use Software Project Release Variation instead * WIP slave test. Compare behaviour outsied my dev instance * fixup slave test * compute partition do not have any local roles anymore * role on Allocation Supply * use Allocation Supply to check where to allocate Ensure Slave Instance can be instanciated on other software release instance (thanks to Instance Node) * update Instance Node local roles * update Allocation Supply local roles * drop^close_ticket page * do not show dedicated Allocation Supply to all users * update currency role definition * stop hardcoding default quantity unit * configure Sale Supply role definitions * Sale Supply interaction workflow for local permissions * drop Software Release configuration and hardcoded paths * link hosting subscription to project * Hosting Subscription roles * fixup test * Instance can access project module * test slave allocation on the same instance tree * give more security group to instances * draft Remote Node security * create 2 projects to simulate remote allocation * remote node security interaction workflow * test allocation on Remote Node * test remote slave allocation * test: do not create Software Installation for Remote Node * move tests to virtual master design * Software Instance can access Compute Node Module * new slapos_panel skin folder * project needed when create person/compute node * project needed to create person * provide access to Web Page to function/marketing * Web Illustration * test marketing function * fixup Account security * fix Accounting Period security * update Account exported local roles * update Accounting Transaction Module security * update Accounting/Balance Transaction security * update web_page_module local_roles * fix Purchase Invoice Transaction security * fix Sale Invoice Transaction security * fixup Payment Transaction security * test Instance Tree security * update Assignment local roles test * test Software Instance local roles * test Slave Instance local roles * test Event local roles * explicitely define the security base category order * test event module local roles * test Compute Node module local roles * test Compute Node local roles * test Support Request module local roles * test Support Request local roles * test Software Product module local roles * test Software Product local roles * drop test for Compute Partition and Software Release * test Software Installation local roles * test Currency (Module) local roles * test Acknowledgment local roles * remove Credit Card local role test We do not store Credit Card * test Regularisation Request local roles * test Computer Model local roles * test Computer Network local roles * drop Computer Module local roles Computer was not reachable, so, no reason to keep this module * test System Event module local roles * test Upgrade Decision local roles * drop InstanceTree_getUpgradeSubscriptionRelatedValue * Upgrade Decision Line is not used anymore * customer is only Auditor on Upgrade Decision * update Computer Network local roles * drop Computer Network scripts * drop add_organisation page * WIP local roles test * fixup Payment Transaction local role test * add SecurePaymentTool local role test * check that Role Definition contains a local_role_group * drop slapos orga and accounting template local roles * drop slapos_aggregated_business_process * drop all trade condition * drop business processes * test: use share code to create accountable project * testSlapOSERP5InteractionWorkflow: there is no source administrator on Compute Node * drop Base_useSaleTradeConditionReference * disable monitor only if allocation_scope is closed/forever * testSlapOSERP5VirtualMasterScenario: define bank account * testSlapOSERP5VirtualMasterScenario: Payment Transaction is not built anymore * TestSlapOSVirtualMasterScenarioMixin * wip testSlapOSERP5VirtualMasterInvoicingScenario * improve consistency in the Role Definition * improve Role Definition consistency * XXX do not allow users to create Compute Node / Instance Tree Break everything, to investigate how we could integrate Open Order with Compute Node * add slapos_subscription_request dependency * Sale person can access Service * only provide read/write access on Organisation to Sale/Accountant * Sale aent create Trade Condition * do not install slapos_subscription_request Everything should work without it. It will be rework later. * do not install slapos_subscription_request * add slapos_virtual_master_subscription local roles * only sort some properties * Sale agent can access currencies * restore Subscription Request local roles * Sale agent can create Subscription Request * update Sale Trade Condition local roles with interaction * show Sale Trade Condition to its destination * allow users to create Compute Node / Instance Tree * add Open Sale Order local roles interaction workflow * update Sale Trade Condition local roles * allow user to see his Open Sale Order * only sale people can create Sale Supply * create trade condition which could be applied to subscribe to a virtual master * local roles of Subscription Request * subscription request interaction workflow * do not allow Sale function to modify Subscription Request Let's automate everything for now * test: use Subscription Request to bootstrap the project * test Compute Node subscription creation * logout test * export service_module/slapos_compute_node_subscription * init preferences in test * test: wip accounting scenario * test: slapos_subscription_request is installed again * give read|write permission to accounting/sale on person/project * test: update virtual master with/without accounting * update one more test * test_virtual_master_slave_on_same_tree_without_accounting_scenario * test_virtual_master_on_remote_tree_without_accounting_scenario * test_virtual_master_slave_instance_on_remote_tree_without_accounting_scenario * test: really disable accounting * test: sale person have access to the currency module * test: provide virtual master currency * constraint: Credential Request is not linked to a Project * test: define currency on the organisation * test: scenario for money deposit * test: typo * test: apply tax amount only if the resource is taxable * allow shadow user to view Organisation * test: reduce number of alarm calls * test: create deposit payment to validate the subscription * test: update related document count * test: no need to explicitely trigger all alarms * drop no used scenario test * give Role for source_project on Sale Supply * sale people can view business process needed to validate Sale Trade Condition * allow Production user to create One Time Access Token * drop slapos_jio dependency * drop my_configuration_slapos_master_web_url * test: configure trade_condition_type on the Sale Trade Condition * test: slapos_panel_compatibility was added * test: create Trade Condition for Deposit * test: slapos_panel_compatibility skin selection * test: fixup trade condition specialise * configure 2 modules's business_application * do not allow user to see each others Do not allow personal information to be visible to anybody * allow Sale agent/manager to handle Assignments * test: assignments are automaticall created when creating a virtual master * test: fixup * drop organisation pages * drop project creation/deletion pages * configure Sale Supply like Sale Trade Condition Sale people manage Sale Supply * drop support request template local roles * getPreferredSupportRequestTemplate has been dropped * sale agent will manage support request unrelated to any project * customer is destination_decision on the Subscription Request * source/destination project have been inverted * customer will be Associate on Subscription Request In order to provid worklist for money deposit * Accountant will be Assign** on Currency * slapos_panel: allow to enter the API url on the web site panel * test: remove deleted script from coverage * xml update * system preference can not be fixed by the upgrader * drop Cloud Contract role definitions * fixup rebase * test: disable 2 tests * test: update Currency check * test: generate the compute node certificate * Sale person can be Assign* on Event * test: use source_project on the Sale Supply * test: use the same Sale Supply for Computer and Software * drop tests for dropped scripts * test: sale agent/manager can access Events * sale agt/manager can handle Regularisation/Support Request * drop slapos_crm_regularisation_request_template * drop regularisation request template * test: dropped script * drop testSlapOSERP5DefaultScenario * give read access to sale packing list to accountant and sale people * test: drop test_InternalPackingListLine* * drop code related to unused Trade Condition * test: noallocation compute node are still monitored * test: dropped scripts * drop slapos_crm_web_message_template local roles * fixup rebase * drop template_compute_node * drop template_software_instance * drop template_member * fixup rebase * drop ComputeNode_getSecurityCategoryFromValidationState * test: Assignment local roles * test Sale Supply local roles * test project local roles * nobody have to access Hosting Subscription for now * test Sale Packing List local roles * give read access to Open Order to sale/accountant people * test Sale Trade Condition local roles * update Subscription Request local roles * test Organisation local roles * drop Product local roles Unused for now * drop Campaign local roles Unused * fix Business Process local roles Accounting people can view the business process * fixup Bank Account local roles * test Instance/Remote Nodes local roles * fixup Service local roles * test Person local roles * test Login local roles * test PDF and Document Module local roles * test Query local roles * test Notification Message local roles * drop Incident Response roles Will be done later, as not critical. * test Credential Update Module local roles * test Access Token local roles * test Document Ingestion Module local roles * test Cash Register local roles * Contract Invitation Token does not seem to be used * drop Invitation Token Module local roles * drop User Consumption HTML File local roles Seems not used * drop Computer Consumption TioXML File local roles * only provide Author access to computer on Consumption Document Module * test Integration Site/Tool local roles * test: G-COMPAGNY group was dropped * test: skip coding style for some scripts * test: not existing script * test: skip some coding style * test: check that destroying a remote instance also destroy propagated instance * fixup rebase * test: do not check Customer BT5 Configurator Item consistency * test: skip more portal types * add manifest for the panel website * no idea why Hal was used in the manifest tests * discussion gadget in service worker * not needed js * test: many bt5 dependencies have been removed * this script is kept for configurator compatibility * test: fixup * XXX test: disable check consistency * test: do not check global consistency and mailhost * coding style * fixup rebase
-
Romain Courteaud authored
* drop template_software_installation * drop template_instance_tree * drop template_member
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
* WIP migration scripts * migrate compute node * do not skip some migration * migrate more properties on compute node * migrate software installation * migrate compute already linked to a project * trigger instance tree migration * migrate more instance trees * migrate Instance Tree, Software/Slave Instance * migrate instance tree * do not create not needed activities * migrate instance tree linked to an existing project * migrate existing subscription requests/projects * allow to run the migration multiple time * move an instance to the same virtual master than his main compute node * if all instances are linked to the same project, move the computer to that project * migrate computer network * move to personal if no instance allocated * partially destroyed instanc ewill move to personal Unallocated instance will use remote note * force migration to remaining compute nodes * break network link if not consistent * create Remote Node and Remote Instances * reduce concurrency on instance tree creation * try to reduce conflict * some sla xml seems broken * instances do not always have a predecessor * it seems activity is also triggered on already migrated instance * some instances were manually invalidated... * do not go too slowly * generate a graph showing the virtual master relation * another report * prepare migrating Instance Tree to a remote node * change report output * fixup instance virtual master migration do not forget to also move the successor to the new virtual master * do not fail if already migrated * create Software Product (and its variations) * create Instance Node * create allocation supplies * control trade condition reference length * migrate existing open order * migrate assignments * slow down execution of the next steps * ensure project exists * fix getTotalPrice usage * slave instance slap_state is not indexed * run instance tree migration multiple times * report broken instances * fixup payable Subscription Request creation * migrate Support Request and Event * improve error message * keep the payable instances on the payable projects * payable instance are now kept on payable virtual master * do not crash if instance was already migrated * report missing prices * show product * create assignment only if user has validated instance tree
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
(it is not supposed to be indexed, but that's another story)
-
Romain Courteaud authored
* test panel scenario * validate testFunctionalSlapOSPanelStyle * dependency * HARDCODED data/user bootstrap * passwd policy * use theia directly in the test * WIP shared instance test * shared instance test * limit Software Instance to manager only * add basic payable service test * randomize logins * check consistency at the end of the test * slapos_panel_ui_test: check all project related documents as project manager * execute all alarms at the end of the test to detect unexpected side effects * ensure we can activate slave allocation on same tree * test remote node allocation * test Slave Instance allocation on Remote Node * ensure request limit the list of release/type based on allocation supply * test Upgrade Decision actions * test Computer Network creation * use Person_addVirtualMaster * do not explicitely call alarms rely on interaction workflow instead * add Software Product to create Subscription Request * add Sale Supply for virtual master * fixup to generate subscription request and use the instance parameter editor * fixup Instance editor usage * set reference on the Trade Condition * fix consistency of other documents before running the tests * request instance action has been modified * fixup accounting scenario * text: configure trade_condition_type on the Sale Trade Condition * test: assignments are automatically created when adding a virtual master * fix Trade Condition creation * update selector used by the new jsoneditor * discussion_thread_reader gadget is now used * do not check Web Site consistency * no need to define the currency manually * search link has been removed. Access global search manually * WIP fixup after frontpage changed * WIP fixup after frontpage changed * do not check System Preference
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
* add SlapOSVirtualMasterSourceProjectConstraint on Upgrade Decision * software product must be linked to a project * create Software Type portal type It is a variation of a Software Product * rename Software Type to Software Product Type Variation * add Software Product Release Variation portal type * force default use/base_contribution on Software Product Didn't find another way to do it (init script requires data migration) * require Software Product to have at least one Type and one Release * store url_string on Release Variation * use edit_workflow on Variation portal types * use the jump action to access Software Release * add dedicated form to view Release * add Software Type view * set SoftwareProduct default quantity unit * support document without categories property * add constraint to ensure quantity unit of a Software Product is defined * drop Software Release configuration. Drop hardcoded template only used in tests * fixup See 1173ea0edf89154719e92acb79c8867c702560c6 * drop Compute Node upgrade This is now handled manually by updating the Allocation Supply * stop allowing Upgrade Decision Line creation * Upgrade Decision is a ticket * wip upgrade decision redesign with allocation supply * not commited script * really compare url strings * update upgrade decision view * only create upgrade decision for SOftware Instance for now * set the compute node on the test allocation supply * drop not used scripts * remote tests from dropped scripts * mark test to check * test alarm_instance_tree_create_upgrade_decision * drop upgrade_scope * test upgrade decision creation for not allocated instance tree * test Upgrade for allocated Software Instance * drop deprecated tests * root shared instance can not be upgraded by Allocation Supply on the same tree * upgrade not allocated or allocated on remote slave instances * update not allocated in there is instance node supply * test upgrade Instance Node * drop unused InstanceTree_getUpgradeSubscriptionRelatedValue * drop UpgradeDecisionLine_cancel * drop Upgrade Decision Line view * drop SoftwareProduct_getSortedSoftwareReleaseList * fix upgrade decision list view * drop InstanceTree_isUpgradePossible No way to know which software release url on instance will request. * drop UpgradeDecision_processUpgrade * drop Base_acceptUpgradeDecision * drop Base_rejectUpgradeDecision * drop reviewRegistration * check created upgrade decision * do not propose again to upgrade if decision has been rejected * no need to check all rejected decisions * do not put newly create decision in started Ask review from manager * drop UpgradeDecision_notify * drop UpgradeDecision_notifyDelivered * drop reviewUpgrade * drop UpgradeDecision_getAggregateValue * drop approveRegistration * drop upgrade_slap_interface_workflow * drop UpgradeDecision_requestChangeState * drop slapos_pdm_auto_cancel_upgrade_decision * use UpgradeDecision_processUpgrade * alarm to destroy software installation * drop unused template * configure Upgrade Decision worklist * drop not needed script arguments * add Upgrade Decision constraints * method moved to global mixin * do not upgrade if there is no instance yet * create upgrade decision as soon as Allocation Supply is validated * workaround to prevent breaking the instance when classes are live reloaded * test: disable alarm when creating an allocation supply * test: disable alarm * software_release is an optional variation We can not update the Open Order every time one Instance is upgraded * sort SoftwareProduct getVariationBaseCategoryList's result * update xml format * optional_variation_base_category_list are not set in variation_base_category_list * force software change from Upgrade Decision * drop template_instance_tree * allow to force upgrade to a specific release * rely on self instead of one a global * drop view_related_upgrade_decision on Compute Node Deprecated for a long time
-
Romain Courteaud authored
Console client does not send a project reference. Try to guess it for simple cases
-
Romain Courteaud authored
* project reference is required for compute node * require a project when requesting an instance tree * Remote Node has no user_id * _makeComplexComputeNode need a project * product/release * Release * test * no source administration on compute node * project on compute node * fix person assignment * proj reference * test * project reference * getSoftwareReleaseListFromSoftwareProduct is related to a project * getSoftwareReleaseListFromSoftwareProduct requires a project reference * release are not published anymore * test: bypass subscription request * drop template_compute_node
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
Services were already in degraded mode due to allocation/propagation being forbidden
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-