1. 29 Jan, 2024 40 commits
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_upgrader: · 2e902287
      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
      2e902287
    • Romain Courteaud's avatar
      slapos_erp5: · a182e65b
      Romain Courteaud authored
      * 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
      a182e65b
    • Romain Courteaud's avatar
      slapos_jio_before_deletion: · 5d6768d5
      Romain Courteaud authored
      * drop project creation/deletion pages
      * drop gadget_erp5_page_slap_cloud_contract_view_js
      * drop template_software_installation
      * drop template_instance_tree
      * drop template_software_instance
      5d6768d5
    • Romain Courteaud's avatar
      slapos_panel: · bde0c626
      Romain Courteaud authored
      * adding a virtual master also adds assignment for the user
      * drop unused script
      * show the issue when it is not possible to add a virtual master
      * more assertion when creating a virtual master
      * Subscription Request categories were inverted
      * prototype Subscription Request's events view
      * display the discussion in read only mode
      * use discussion gadget on Support Request
      * do not build url by joing strings
      * create Virtual Master only for validated Person
      * simplify configuration by not requiring to fill the hateoas url in the preferences
      * allow to enter the API url on the web site panel
      * project's codification is used to generate the local roles
      * drop useless field tales which hide the content
      * ensure the url is relative to the web site, but without containing a //
      * those files exist in slapos_cloud
      * desactivat the Supply action
        Force user to supply from the Allocation Supply configuration.
        otherwise, alarms will clean up the manually added Software Installation.
      * user has no group if it can not even access the Project
      * use souce_project to find the trade condition
        no need to trick source/destination project anymore, as trade_condition_type is used
      * add a Sale Supply Line for the Compute Node price
      * SoftwareInstallation_getNewsDict has been dropped
      * add missing arguments
      * ComputeNode_getSoftwareReleaseState was replaced by SoftwareInstallation_getInstallationState
      * add activate_kw parameter
      * virtual master can be free, and instance payble
      bde0c626
    • Romain Courteaud's avatar
      slapos_rss_style: · 9b1fdce6
      Romain Courteaud authored
      * drop template_software_installation
      * drop template_instance_tree
      * drop template_member
      9b1fdce6
    • Romain Courteaud's avatar
      0b3c85d2
    • Romain Courteaud's avatar
      slapos_jio: · 00a63f3b
      Romain Courteaud authored
      * fixup rebase
      * drop files moved to portal_skins
      00a63f3b
    • Romain Courteaud's avatar
      slapos_cloud: · 7c761994
      Romain Courteaud authored
      * 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
      7c761994
    • Romain Courteaud's avatar
      slapos_configurator: do not prevent slapos_category to be updated · b8ae0c1c
      Romain Courteaud authored
      otherwise, new categories are not installed
      b8ae0c1c
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_erp5: · 0d758a48
      Romain Courteaud authored
      * 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
      0d758a48
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_payzen: update xml format · 8a2c8c9e
      Romain Courteaud authored
      8a2c8c9e
    • Romain Courteaud's avatar
      slapos_panel: · 26f4b97a
      Romain Courteaud authored
      * readd translation bt5 dependencies
      * configure trade_condition_type on the Sale Trade Condition
      26f4b97a
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_jio_before_deletion: · e68a9690
      Romain Courteaud authored
      * dependencies
      e68a9690
    • Romain Courteaud's avatar
      slapos_jio: · 593941ee
      Romain Courteaud authored
      * 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
      593941ee
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_panel: · 97b688e6
      Romain Courteaud authored
      * project does not have status gadget anymore
      * use getPreferredHateoasUrl to generate the compute token
        improve consistency with slaptool (configure this value in 1 place only)
      97b688e6
    • Romain Courteaud's avatar
      slapos_jio/panel: restore status gadget first rendering · eab88e82
      Romain Courteaud authored
      onLoop must be fixed probably
      eab88e82
    • Romain Courteaud's avatar
      slapos_jio: restore label_listbox_field · 74e42bb5
      Romain Courteaud authored
      74e42bb5
    • Romain Courteaud's avatar
      slapos_panel: drop hardcoded url · 50562ccd
      Romain Courteaud authored
      50562ccd
    • Romain Courteaud's avatar
      slapos_panel: · f2e2dc2d
      Romain Courteaud authored
      * add dependencies
      * alphabetical order
      * restore Compute Node token creation and usage
        Token is now created from a Project
      * dependency to slapos_jio
        keep status gadget and the parameter gadget in their original bt5, to simplify rebase
      * add missing js dependencies for the json schema validator gadget
      f2e2dc2d
    • Romain Courteaud's avatar
      slapos_jio: · 02788475
      Romain Courteaud authored
      * 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
      02788475
    • Romain Courteaud's avatar
      slapos_cloud: · 0844d13f
      Romain Courteaud authored
      * 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
      0844d13f
    • Romain Courteaud's avatar
      slapos_erp5: · 16bc0174
      Romain Courteaud authored
      * 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
      16bc0174
    • Romain Courteaud's avatar
      slapos_panel: xml · c9ebf652
      Romain Courteaud authored
      c9ebf652
    • Romain Courteaud's avatar
      slapos_cloud: · 9e5f5f94
      Romain Courteaud authored
      * test: allow to disable alarm when validation a allocation supply
      * test: drop reference to an outdated alarm
      9e5f5f94
    • Romain Courteaud's avatar
      slapos_jio: · a5b140a4
      Romain Courteaud authored
      * fixup rebase
      a5b140a4
    • Romain Courteaud's avatar
      slapos_cloud: · dd185796
      Romain Courteaud authored
      * 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
      dd185796
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      cd6aeb11
    • Romain Courteaud's avatar
      slapos_subscription_request: · 104d3ab9
      Romain Courteaud authored
      * 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
      104d3ab9
    • Romain Courteaud's avatar
      slapos_erp5: drop no used scenario test · b18dce66
      Romain Courteaud authored
      b18dce66
    • Romain Courteaud's avatar
      9457d892
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_cloud: · d2926e19
      Romain Courteaud authored
      * 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
      d2926e19
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      94a7cc50