1. 27 Mar, 2024 13 commits
    • Romain Courteaud's avatar
      slapos_configurator: · 97370a6d
      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
      * change module id generator
      * portal_callables is not handle by the configurator
        See nexedi/erp5@a55b0f78
      * test: cloudooo url order is random
      * test: set convertion server with the constraint
      * test: some bt5 were dropped
      97370a6d
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_jio: · 2d5b8918
      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
      2d5b8918
    • Romain Courteaud's avatar
      slapos_panel_ui_test: · 9dfba0c8
      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
      * do not check System Preference
      * test: set the region on customer accounts
      9dfba0c8
    • Romain Courteaud's avatar
      slapos_panel: · 3d4be752
      Romain Courteaud authored
      * close erp5js as new panel
      * add WIP access page on panel
      * add an action to create a Compute Node from a Project
      * add custom CSS, to reduce site confusion
      * drop unused code
      * add Project Module view
      * add project view
      * add Compute Node view
      * proxify the gadget fields
      * add compute node revoke certificate
      * add compute node request certificate action
      * add compute node module view
      * add Ticket module view
      * add new Support Request from Instance Tree and Compute Node
      * add support request view
      * add event module view
      * fix add compute node action title
      * add Mail/Web Message view
      * add add_slapos_event action
      * add instance tree module view
      * add software product module view
      * add Software Product view
      * add add_slapos_software_product on project
      * add Software Release Module view
      * SoftwareProductModule_viewSoftwareProductListOnSlaposPanel view
      * add Software Release view
      * reference is needed on the created software product
      * add Software Release action
      * show software release state
      * setup software release language
      * create Software Installation
      * fixup portal_status_message propagation
      * move SoftwareInstallation_getSoftwareReleaseInformation
      * add Software Installation Module view
      * configure website view and CSP
      * add Software Installation view
      * add request_slapos_destroy
      * move instance action from slapos_cloud
      * move instance tree action from slapos_cloud
      * add Project request_slapos_instance_tree action
      * add Instance Tree view
      * add Instance Tree update parameter action
      * add Software Instance view
      * add Slave Instance view
      * add Software Instance Module view
      * try to install slapos_panel in test
      * only show action if the project is validated
      * set configuration_default_project_relative_url on panel web site
      * revert: no need to set default project on web site
      * export the panel web sections
      * view Subscription Request Module
      * do not crash if document is not linked to a project
      * fork header/panel gadgets
      * fork header/panel
      * only export last workflow history
      * do not display action view list in the panel
      * only show "slapos" actions in the panel
      * do not display "Modules" and workflow actions
      * do not display "Editable" checkbox
      * do not display "Logout" link
      * fixup: only export last workflow history
      * use "vifib.cloud" icon on the panel
      * do not display search form in the panel
      * requires Release/Type variations when creating Software Product
      * jump to Software Release
      * add Release view
      * jump from Project to Software Product
      * Release are now Software Product variation
      * review View section in panel
        Needed to cancel jump view
      * jump_to_slapos_software_type
      * add Software Type view
      * add Software Type action
      * jump to Compute Node from project
      * initialise Software Release title (to not see the ID by default)
      * Release are now Software Product sub objects
      * create draft allocation supply from project
      * translate string
      * add Allocation Supply view
      * view Allocation Supply Line
      * create Software Installation from Allocation Supply
      * show Allocation Supply list
      * only show allocable Software Product when requesting
      * jump to project instance trees
      * hide header link to prevent confusion
        Good links must be defined in next version
      * show all project support request
      * close ticket action
      * prefill all Software Product info from JS
      * create Instance Node from Instance Tree
      * create Allocation Supply from Instance Node
      * software.json contains multiple entries with the same software-type
      * do not create multiple Instance Node from an Instance Tree
      * show project Instance Nodes
      * show Compute/Instance Node's allocation supplies
      * handle software product with only one software type
      * try not to duplicate software product
      * improve software release creation
        extend software type list
      * no need to manually create software type
      * only check Software Product from the same project
      * person view
      * use Allocation Supply to return the list of Software Product
      * use Project_getSoftwareProductPredicateList to find Software Product
      * show Allocation Supply destination
      * invalidate Allocation Supply
      * add Allocation Supply Module view
      * Instance Node view
      * do not add Instance Tree for project with accounting
      * add an exemple of payable product list
      * drop unused script
      * add Sale Supply for Project
      * validate/invalidate Sale Supply
      * show price unit
      * add missing view action on Instance Node
      * add field to allow slave on same instance tree
      * add actions for Remote Node
      * jump from Project to Remote Node
      * export favicon
        it was dropped from slapos_web
      * restrict the list of software type based on allocation supply
      * drop upgrade_scope
      * add Upgrade Decision view/actions
      * change action title from View to Panel View
        To make coding style test happier
      * display translated state title
      * add Computer Network
      * add Computer Network jump
      * show Computer Network related Compute Nodes
      * invalidate Computer Network
      * install payzen/wechat dependencies
        they were provided by subscription bt5
      * fetch currency from project default trade condition
      * use Project_getAccountingCurrency
      * use Project_getAccountingCurrency in action conditions
      * action to create a virtual master for a user
      * Person_addVirtualMaster: try to find trade condition with Trade Model Line and currency
      * require currency information when creating a virtual master
      * merge request payable/non payable instance actions
      * update slapos_master_panel modification date
      * update add Sale SUpply action
      * do not install slapos_subscription_request
      * 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
      * drop hardcoded url
      * restore status gadget first rendering
        onLoop must be fixed probably
      * 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)
      * readd translation bt5 dependencies
      * configure trade_condition_type on the Sale Trade Condition
      * 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
      * control trade condition reference length
      * drop ComputeNode_getNewsDict
      * jsoneditor needs unsafe-inline style
      * fixup support request creation
      * fix Support Request listbox
      * fix support request view
      * use source_project as sender if none is defined
      * ticket use source_project
      * stop using dropped requestEvent workflow transition
      * customer can not close tickets
      * allow customer to see the list of tickets
      * validate the ticket when possible
      * stop using gadget_slapos_event_discussion_entry
      * display and sort by start date
      * show software types and releases
      * show instance allocation information
      * show Instance/Remote Node
      * set the expected Sale Supply by default
      * drop computer network status field
      * XXX drop slapos_jio dependency
      * activate the service worker
      * move login page templates
      * moved to slapos_panel
      * move to slapos_panel
      * add Preference view
      * add Subscription Request view action
      * drop global search
      * use slapos view on the access page
      * add Regularisation Request view
      * change panel access page to only show user services/projects/computers/tickets
      * add a global request action
      * do not show invalidated tickets
      * move to slapos_panel
      * display radiofield vertically
      * make request dialog a bit more understandable
      * do not propose to close the ticket if it is already closed
      * show action on panel
      * action to create a Ticket on the Project context
      * add an action to manually create an upgrade decision
      * show user's invoice
      * disable the search on the panel access page
        (it is not correctly working)
      * display invoice payment state
      * reintroduce payzen interface
      * do not show/create to object not from the same project in relation field
      * reintroduce RSS feeds
      * moved from slapos_jio
      * if the virtual master is paid by an organisation, it will also pay for compute node
      * drop custom green css
      3d4be752
    • Romain Courteaud's avatar
      slapos_jio_before_deletion: · a9873eb9
      Romain Courteaud authored
      * restore status gadget first rendering
        onLoop must be fixed probably
      * drop organisation/site pages
      * 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
      * move login page templates
      * moved to slapos_panel
      * moved from slapos_jio
      * drop pages
      a9873eb9
    • Romain Courteaud's avatar
      slapos_wechat: support new ID generator · 99d8de62
      Romain Courteaud authored
      Modules switched to per day/node ID generator.
      
      Also in this commit:
      * drop not needed trade conditions
      99d8de62
    • Romain Courteaud's avatar
      slapos_payzen: support new ID generator · 8f21b4f4
      Romain Courteaud authored
      Modules switched to per day/node ID generator.
      
      Also in this commit:
      * drop templates
      * drop not needed trade conditions
      8f21b4f4
    • Romain Courteaud's avatar
      slapos_erp5: · a4b57178
      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
      * drop organisation_security_uid
      * set local_roles_group
      * test: 2 roles are expected to be without group
      * production manager can create upgrade decision
      * add new gadget in panel
      * no need to give access to Regularisartion Request to production manager
      * update exported currency local roles
      * no need to be assignor on a module
      * fixup ticket/event local roles
        Sale must have some access on module
      * fixup shadow user permission on payment transaction
      * change module id generator
        Base the id prefix on node id, to prevent conflict when generating many activities
      * do not crash if a module does not have the business_application category
      * test: rss installed
      * test: stabilize discount/invoice period
      * drop not required bt5 dependencies
      * test: 1 event is created on the subscription request until invoice is lettered
      * test: WIP: professional account scenario
      * user is set on the destination of the Sale Order and Sale Invoice
      * person is set on the Payment's destination
      * keep Payzen/Wechat conf as previously
      * update interaction for local roles
      * test: create 2 Trade Model Line for empty and full vat
      * test: set the seller region
      * test: define the region.vat code on the customer organisation
      a4b57178
    • Romain Courteaud's avatar
      slapos_rss_style: · b113d325
      Romain Courteaud authored
      * drop template_software_installation
      * drop template_instance_tree
      * drop template_member
      * test: fixup
      * test: drop updateLocalRolesOnSecurityGroups calls
      * test: drop usage of organisation_module.slapos
      * stop using dropped related keys
      * test: use dedicated scripts to create Ticket/Event
      * test: Event_getRSSTextContent does not exist
      * drop immediateReindexObject
      * fix context_related parameter usage
      b113d325
    • Romain Courteaud's avatar
      slapos_crm: · ab483356
      Romain Courteaud authored
      * source_administration is not used anymore on Compute Node
      * add virtual master contraint to tickets and events portal types
      * propagate project from Regularisation Request to event
      * delivery/movement must use source_project instead of follow_up
      * set source_project on event
      * stop setting person as source_project
      * copy project from ticket to the new event
      * utf-8 encoding issue
      * XXX disable regularisation request alarm
      * Regularisation Request Module acquires local roles
        See other modules
      * drop upgrade_scope
        Upgrade is managed by Allocation Supply.
      * drip upgrade_scope usage
      * drop Upgrade Decision Line usage
      * lint test
      * fix slapos_crm_check_software_installation_state alarm test
      * fixup slapos_crm_check_compute_node_state tests
      * fixup slapos_crm_check_instance_in_error test
      * fixup slapos_crm_update_support_request_state tests
      * fixup slapos_crm_send_pending_ticket_reminder test
      * fixup slapos_crm_trigger_stop_reminder_escalation tests
      * fixup slapos_crm_trigger_stop_acknowledgment_escalation test
      * fixup slapos_crm_trigger_delete_reminder_escalation test
      * fix slapos_crm_trigger_acknowledgment_escalation test
      * fix slapos_crm_stop_instance_tree test
      * fix slapos_crm_invalidate_suspended_regularisation_request test
      * fix slapos_crm_delete_instance_tree test
      * fix slapos_crm_create_regularisation_request test
      * drop slapos_crm_check_update_allocation_scope tests
      * do not require source_project on crm
      * fixup rebase: drop Instance Tree Module | slapos_resilience_usage_report
      * drop preferred_support_request_template_property
      * drop slapos_crm_support_request_template
      * fixup slapos_crm_create_regularisation_request tests
      * reactivate slapos_crm_create_regularisation_request
      * test slapos_crm_invalidate_suspended_regularisation_request is ok
      * test slapos_crm_check_software_installation_state
      * test slapos_crm_check_instance_in_error
      * test slapos_crm_update_support_request_state
      * desactivate Person_getSubscriptionRequestFirstUnpaidInvoiceList
      * drop Person_getSubscriptionRequestFirstUnpaidInvoiceList
      * do not count all Support Requests
        limit parameter with count is meaningless, as count return 1 result
      * update Base_getSupportRequestInProgress usage
      * XXX disable ticket.notify and ticket.requestEvent
      * wip script to create Support Request and Event
      * search a matching Trade Condition to generate a Support Request
      * update ComputeNode_checkState to use new scripts
      * test ComputeNode_checkSoftwareInstallationState
      * deliver outgoing events
      * test InstanceTree_checkSoftwareInstanceState
      * Project_createSupportRequestWithCausality already checks if Support Request exists
      * no need to check twice the object portal type
      * test SupportRequest_updateMonitoringState
      * activate one more alarm
      * revert  Send Mail on pending tickets
        nexedi/slapos.core!417
        Virtual Master's manager are responsible to handle the tickets through their worklist.
        Not user.
        Virtual Master's manager can send email from the Ticket to directly ping a user.
      * drop ticket_slap_interface_workflow
      * test ComputeNode_hasContactedRecently
        Do not check if there is a packing list. It is unrelated to the contact.
      * Base_getOpenRelatedTicketList was dropped
      * ComputeNode_checkAndUpdateAllocationScope was dropped
      * test: simplify
      * set comment in the event workflow history
      * send Mail Message
      * unify event creation
        Reuse Ticket_createProjectEvent
      * do not pass a empty list of node_uid
      * no need to manually handle the notification message
      * create the Regularisation Request from a Trade Condition instead of a template
      * use notification message title instead of the ticket title
      * use Entity_hasOutstandingAmount
        Entity_getOutstandingAmount is meaningless in case of multiple source_section and multiple currencies.
        Entity_hasOutstandingAmount will only report True or False.
      * test RegularisationRequest_invalidateIfPersonBalanceIsOk
      * test RegularisationRequest_checkToTriggerNextEscalationStep
      * test RegularisationRequest_triggerStopReminderEscalation
      * test RegularisationRequest_triggerStopAcknowledgmentEscalation
      * test RegularisationRequest_triggerDeleteReminderEscalation
      * test RegularisationRequest_stopInstanceTreeList
      * test RegularisationRequest_deleteInstanceTreeList
      * fixup RegularisationRequest_checkToSendUniqEvent tests
      * fixup RegularisationRequest_checkToTriggerNextEscalationStep tests
      * fixup InstanceTree_stopFromRegularisationRequest tests
      * fixup InstanceTree_deleteFromRegularisationRequest tests
      * drop slapos_crm_regularisation_request_template
      * drop slapos_crm_web_message_template
      * drop preferred_web_message_template_property
      * drop slapos_ticket_trade_condition
      * drop update_destination_for_slapos
      * drop allocation_tester
      * drop template_software_installation
      * drop template_instance_tree
      * drop template_member
      * test: fixup person title
      * test: fixup: ensure tickets can be created
      * test: fixup creation of instance tree
      * test: fixup instance tree creation
      * test: ComputeNode_getTicketRelatedList was dropped
      * test: rss feed will be used by virtual manager production
      * test: ticket.approveRegistration was dropped
      * ExactMatch
      * drop preferred_cloud_contract_enabled_property
      * only submit the newlu created Support Request
        end user can not validate their submitted ticket
      * drop jump_related_slapos_item
      * drop outdated SlapOSSupportRequestConstraint
      * submit created event
        This allow to separate new ticket from the one currently handled
      * constraint was dropped
      * test: create test ticket in submitted state
      * support request are created in submitted state
      * drop open/personal allocation_scope
      * only check automated Outstanding Invoices
      * invalidate Regularisation Request as soon as payment is done
      * create the regularisation request as soon as possible
      * use _baseSetGroupingReference for interaction
      * test: disable interaction
      * test: use PinnedDateTime context
      * delete instance, compute node, project if regularisation request reach the end
      * test: add crm scenario showing services are destroyed
      * trigger Project invalidation as soon as Nodes and Instances are invalidated
      * trigger not paid item deletion as fast as possible
      * test: reduce number of alarm triggered
      * do not stop but delete directly
        Services were already in degraded mode due to allocation/propagation being forbidden
      * test: only payable services are destroyed by the subscription request
      ab483356
    • Romain Courteaud's avatar
      slapos_subscription_request: subscription request is only used to generate an Open Sale Order · f2e74d9f
      Romain Courteaud authored
      A Subscription Request is a ticket, which should be used to generate an Open Sale Order for a service.
      When the Open Order is created, the ticket is closed, and not used anymore.
      
      Drop the Subscription Condition object.
      Using Sale Trade Condition is enough to define all the Open Order profiles.
      Using Sale Supply is enough to define the prices.
      
      As services can be created from SlapOS API, the Subscription Request
      can be created after the service already exists.
      Block allocation until the Open Sale Order has not been yet created.
      User will be able to fill the services details, without it being used in the system.
      
      Open Sale Order must be created, even if the service is free, to allow
      using the inventory API on the services (using Packing List).
      
      In order to reduce the number of invoice for the customer, ensure the
      invoice date is stable for a customer, and provide discount to not invoice
      unused period.
      Do not use the same date for every users, to reduce load on the system
      for that day.
      
      To accept a payable service Subscription Request, the customer must
      provide a deposit, which may be used to pay a not paid monthly invoice.
      
      Also in this commit:
      * drop not needed templates
      * use interaction workflow to trigger alarms
      * drop ecommerce dependency
      f2e74d9f
    • Romain Courteaud's avatar
      slapos_accounting: stop generating a single open sale order per user · 080147d4
      Romain Courteaud authored
      Instead of having a giant versionned Open Sale Order, containing all user
      subscriptions, create one Open Sale Order per subscription.
      The Open Order state can now be used to mark the subscription status.
      
      This reduce the simulation tree size, as a such tree will not be
      updated anymore when a subscription ends.
      
      The Open Order stop date is set when closing the Open Order.
      
      Create a new 'automated' ledger category, to explicitely mark the
      deliveries managed by the alarms / scripts.
      Drop the explicit reference of a specific business process / trade condition,
      and allow any Trade Condition to be used, based on its predicate/trade_condition_type configuration.
      
      Ensure the items are propagated in the simulation movements and delivery lines.
      
      Aggregate Sale Invoices, based on their Trade Condition and profile values.
      A user will have multiple invoices if he is using multiple virtual master's services.
      
      Implement a VAT calculation for France only for now.
      Delivery Line with a taxable business_contribution must trigger the
      tax calculation script (which depends on many factors like type of sold items, customer address, ...)
      and explicitely mark on the line the VAT rate.
      Customer address can be modified in futur, without impacting the delivery
      vat calculation.
      
      Also in this commit:
      * drop template usages
      * use interaction workflow to trigger alarms
      * do not generate invoice with a 0 total price
      * drop hardcoded reference of hardcoded currencies
      * add contraints on the simulation logic, to prevent generating wrong movements
      * configure Sale Supply to allow more complex price definitions
      * allow using any kind of resource on the deliveries
      * disable consumption delivery generation (until better specified)
      * stop forcing/hardcoding payment mode in advance
      * support for variated resources
      * allow to manually pay multiple invoices with a single payment
      * drop the cloud contract tricks
      * destroy items as soon as the Open Order is closed
      * add a discount service to reduce the invoice price if wanted
      * add a deposit service to support invoice prepayment
      080147d4
  2. 26 Mar, 2024 12 commits
    • Romain Courteaud's avatar
      slapos_pdm: support for the virtual master logic · 7134546e
      Romain Courteaud authored
      A Software Product is a variated resource with 2 axes:
      - Software Product Release Variation (optional variation),
        to not force updating Order/Delivery every time one Instance is upgraded
      - Software Product Type Variation
      It is linked to a Project (virtual master).
      
      Redesign the Upgrade Decision logic.
      It is now a Ticket, generated by the Allocation Supply configuration:
      - upgrade is different for every Project
      - upgrade can be triggered on a specific Node, or for a specific user
      
      Upgrade Decision is created automatically only if there is a single possible release allocable
      for a Software Product.
      Otherwise, it must be created manually.
      
      The Upgrade Decision must be approved by the Project manager,
      who is responsible for the Allocation Supply configuration.
      
      Also in this commit:
      * drop template usage
      * trigger alarm with interaction workflow
      7134546e
    • Romain Courteaud's avatar
      slapos_slap_tool: support for the virtual master logic · e1f74ff5
      Romain Courteaud authored
      A project reference is required to create a compute node.
      
      Add compatibility with the user request
      Console client does not send a project reference.
      Try to guess it for simple cases
      e1f74ff5
    • Romain Courteaud's avatar
      slapos_cloud: add virtual master concept · e5f82c58
      Romain Courteaud authored
      Drop the allocation scope open/subscription/public logic.
      
      Instead, use Project as Virtual Master, and force
      all slapos_cloud object to be linked to one Project:
      * every Compute Node is linked to a Project
      * any Project's Instance can be allocated on a Project's Compute Node
      
      Allocation is managed by configuring an Allocation Supply document,
      which defined on which Compute Node a Software Product can be allocated.
      
      User are not allowed anymore to change the release/type/shared state of their Instance Tree.
      
      Managing Compute Node is done on the virtual master level, and so,
      there is no need to define any Compute Node administrator.
      
      A Software Product is a variated resource with 2 axes: software release url and softare type.
      
      Slave Instance are now allocated on Instance Node, which is created
      from the Software Instance which will control the configuration.
      Slave Instance allocation is also controlled by an Allocation Supply,
      which allow separating the Software Instance and Slave Instances versions.
      
      There could be any number of virtual master in the system.
      Every virtual master defines its own Software Products.
      Because of this, it is not possible to change a document's virtual master
      after its creation.
      
      Instance request can be propagated on another virtual master, by
      allocating them on a Remote Node document, which will generate
      a new Instance Tree request on another virtual master.
      
      Also in this commit:
      * trigger alarms as soon as possible with interaction workflow
        which allows to reduce some alarms frequency
      * drop never used Organisation logic
      * drop person.requestSite
      * drop audit_validation_workflow
      * drop ComputePartition_getCustomAllocationParameterDict
        This is a hack incompatible with virtual master standalone logic.
      * drop cloud contract
      * 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
      * stop using hardcoded currency/organisation/trade condition/business process
      * drop templates usages
      * add One Time Virtual Master Access Token portal type
        Needed for compatibility with the compute node deploy script
      e5f82c58
    • Romain Courteaud's avatar
      slapos_category: · a5689b47
      Romain Courteaud authored
      * add new business application categories
      * export edger category
      * automated ledger is not only for accounting
      * drop allocation_scope/open categories
        All compute nodes are public now
      * add use/trade/deposit category
      * do not use the same title for 2 categories
      * Add trade condition type categories.
        This will be used to automatically select a Trade Condition in slapos_accounting
      * add invoicing taxable vat categories
      a5689b47
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_mysql_innodb_catalog: · 8d9642c7
      Romain Courteaud authored
      * drop default_or_child_aggregate_reference
      * drop  default_or_child_aggregate_uid catalog key
      * drop unused follow_up_default_or_child_aggregate_uid
      * drop causality_subscription_request_related_uid related key
      8d9642c7
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_mysql_innodb_catalog: configure title column as a keyword key · f59f369c
      Romain Courteaud authored
      This make usage of the relationfield nicer.
      f59f369c
    • Romain Courteaud's avatar
      1e6b3694
  3. 25 Mar, 2024 1 commit
    • Rafael Monnerat's avatar
      slapos_cloud: Split edit in 2 · acff4533
      Rafael Monnerat authored
        This is required due interacton workflow call on _setAlloctionScope.
      
        We could change the capacity_scope to close (so allocation worklfow order dont matter, but
        it would change the expected behaviour if we drop the interaction workflow, so it is more
        reasonable keep the existing behaviour unchanged.
      acff4533
  4. 23 Mar, 2024 1 commit
  5. 22 Mar, 2024 6 commits
  6. 19 Mar, 2024 7 commits