1. 03 Feb, 2025 22 commits
    • Cédric Le Ninivin's avatar
    • Cédric Le Ninivin's avatar
      54035495
    • Cédric Le Ninivin's avatar
    • Cédric Le Ninivin's avatar
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_jio_api_style: mixin squash · e5373ad9
      Romain Courteaud authored
      slapos_jio_api_style: xml update
      
      slapos_jio_api_style: web site is panel now
      
      slapos_jio_api_style: try to move the software installation json type class to a mixin
      
      slapos_jio_api_style: try to move the software instance json type class to a mixin
      
      slapos_jio_api_style: try to move the compute node json type class to a mixin
      e5373ad9
    • Romain Courteaud's avatar
      XXX Revert "slapos_cloud/slapos_erp5: Move SlapOSTestCaseDefaultScenarioMixin to slapos_erp5" · 48cb34ea
      Romain Courteaud authored
      This reverts commit fa078ca0.
      
      Include code to move
      48cb34ea
    • Romain Courteaud's avatar
      XXX REVERT: stop spreading api code in slapos_cloud · 40ac92dd
      Romain Courteaud authored
      Include code to move
      40ac92dd
    • Cédric Le Ninivin's avatar
      15c28d72
    • Cédric Le Ninivin's avatar
    • Cédric Le Ninivin's avatar
    • Cédric Le Ninivin's avatar
      slapos_jio_api_style: BIG squash · 95b83286
      Cédric Le Ninivin authored
      slapos_jio_api_style: Add action to create Compute node and retrieve certificates
      
      slapos_jio_api_style: Finish create Compute Node process
      
      slapos_jio_api_style: Add Request Software Installation
      
      slapos_jio_api_style: Add support to request instance
      
      slapos_jio_api_style: Update Supply Software action title to match existing vocabulary
      
      slapos_jio_api_style: Instance parameter is expected in JSON
      
      slapos_jio_api_style: Remove unecessary $id in create Software Installation Schema
      
      slapos_jio_api_style: Create Compute Node return indented JSON answer
      
      slapos_jio_api_style: Add Update software installation
      
      Can replace the following SlapTool calls:
      * softwareReleaseError
      * availableSoftwareRelease
      * buildingSoftwareRelease
      * destroyedSoftwareRelease
      
      slapos_jio_api_style: use SlapOSCatalogToolCacheMixin to get Compute Node
      
      slapos_jio_api_style: set skin layer priority on slapos jio api
      
      slapos_jio_api_style: Code cleanup to use Slapos Cache catalog mixin
      
      slapos_jio_api_style: update offers various options to find the software installation
      
      slapos_jio_api_style: Add related key to be able to search instance from host compute node reference
      
      slapos_jio_api_style: Fix schema of update Software Installation
      
      slapos_jio_api_style: Add dedicated JSON form to get Software Instance
      
      This is needed as we get software instances by their reference and not
      their relative urls
      
      slapos_jio_api_style: Add search functions for software installation and instance
      
      slapos_jio_api_style: Add tools to get and search Shared/Slave Instances
      
      slapos_jio_api_style: Add api get Software Installation
      
      slapos_jio_api_style: Add API get Compute Node
      
      slapos_jio_api_style: Add search Compute Node to API
      
      slapos_jio_api_style: Add Compute Node in get Object From Data
      
      slapos_jio_api_style: Update get Software Instance actions priority
      
      slapos_jio_api_style: Fix state value in search software installation
      
      slapos_jio_api_style: Introduce first version of update instance
      
      Still missing:
      * Update connection parameters
      * Update state
      
      slapos_jio_api_style: search instance return more information
      
      slapos_jio_api_style: Search instance return more information
      
      slapos_jio_api_style: Add retention delay to request instance
      
      slapos_jio_api_style: Add requested instance list to update instance
      
      slapos_jio_api_style: Fix typo on root_instance_title
      
      slapos_jio_api_style: Search instance with partition reference and compute node id
      
      slapos_jio_api_style: Update software installation return dedicated Schema
      
      slapos_jio_api_style: Update returned data in update Software Installation
      
      slapos_jio_api_style: Fix slap state in search instance
      
      slapos_jio_api_style: request Software Instance return Software instance if it exists
      
      slapos_jio_api_style: Fix Naming in requesting Software Instance
      
      Moved from Computer Partiton to Software Instance
      
      slapos_jio_api_style: Add State parameter in search instance
      
      slapos_jio_api_style: Fix Search Shared Instance
      
      slapos_jio_api_style: First version of update Compute Node to replace format
      
      slapos_jio_api_style: Fix Update Software Instance
      
      slapos_jio_api_style: Add Software Instance Certificate Record
      
      The purpose is to remove certificates from the instance json object
      
      slapos_jio_api_style: Add update connection parameter to update instance
      
      slapos_jio_api_style: Add get instance from compute node and compute partition
      
      This is useful for backward compatibility
      
      slapos_jio_api_style: Can update instance with Compute Node and Compute Partition IDs
      
      slapos_jio_api_style: allDocs for Instances and Installations include timestamp
      
      slapos_jio_api_style: add from processing timestamp to instance search
      
      slapos_jio_api_style: Add limit and pagination on search instance
      
      slapos_jio_api_style: WIP Add method to use jio_api_revision
      
      slapos_jio_api_style: WIP Continue Work on jIO API Revision
      
      slapos_jio_api_style: Add custom method to get documents missing jio api revision
      
      slapos_jio_api_style: Add enhabled alarm to check consistency of jio_api_revision table
      
      slapos_jio_api_style: Search Instance By API Revision
      
      slapos_jio_api_style: Improve search API and add revision to Software Installation and Compute Node
      
      * Add revision to Software Installation and Compute Node
      * Add get_parameters to Software Installation and Compute Node result List
      * Add revision to Software Installation and Compute Node result list
      * Add from jio_api_revision input parameter for Compute Node and Software Installation search
      * Add pagination in all searches with next_page_parameter
      * Add current_page_full parameter to search results as indication if a query for the next search page is needed
      
      slapos_jio_api_style: Move to JIO API Revision depending on jio web section
      
      WIP slapos_jio_api_style: add test for SlapOS JIO API
      
      slapos_jio_api_style: Add bang to Compute Node
      
      slapos_jio_api_style: Add support to encoded URL when getting Software Installation
      
      slapos_jio_api_style: Add mote tests
      
      * Compute Bang
      * Software Release
      
      WIP slapos_jio_api_style: Continue Testing, this time instance interaction
      
      WIP slapos_jio_api_style: continue porting SlapTool tests
      
      slapos_jio_api_style: support quoted url for software_release_uri
      
      slapos_jio_api_style: Finish porting test from SlapTool
      
      slapos_jio_api_style: tests Raise Error with JSON content when http response status is not corresponding
      
      slapos_jio_api_style: Add Dependency to slapos_jio
      
      slapos_jio_api_style: Move bt format to zope4
      
      slapos_jio_api_style: Change dependency order
      
      slapos_jio_api_style: Improve Software Installation search and add tests
      
      slapos_jio_api_style: Add misssing action types
      
      slapos_jio_api_style: Add missing put action on Slave Instance portal type
      
      slapos_jio_api_style: Tests Update excpected json for Software Installation
      
      slapos_jio_api_style: remove unused code from testSlapOSJIOAPI
      
      jio_api: Remove software release uri constraint in schema
      
      This was creating irrelevant validation fails when parsing weird urls
      
      slapos_jio_api_style: rationalise output of jIOWebSection_createComputeNode
      
      * Use the same data structure as the rest of the API
      
      slapos_jio_api_style: Fix test by updating revision
      
      slapos_jio_api_style: remove no approval of computer upon request
      
      slapos_jio_api_style: Fix extra coma in jIOWebSection_searchInstanceFromJSON Schema
      
      slapos_jio_api_style: approve registration is a parameter of createCompute Node
      
      slapos_jio_api_style: Remove id option in get Compute Node and Software Installation
      
      slapos_jio_api_style: update calls to _makeComplexComputeNode
      
      slapos_jio_api_style: update Person creation in tests
      
      slapos_jio_api_style: update API to use project_reference
      
      slapos_jio_api_style: add alarm script to tests
      
      slapos_jio_api_style: update references to project_reference
      
      slapos_jio_api_style: update tests after rebase
      
      slapos_jio_api_style: getComputePartitionUid
      95b83286
    • Cédric Le Ninivin's avatar
      slapos_cloud: BIG squash · 43bc72f5
      Cédric Le Ninivin authored
      slapos_cloud: Move Software instance from Base Type to JSON Type
      
      slapos_cloud: Move Software Installation from Base Type to JSON Type
      
      slapos_cloud: Add full_text test dependency
      
      slapos_cloud: Add test dependency to slapos_configurator
      
      slapos_cloud: use getObject to unwrap compute node
      
      slapos_cloud: Do not automatically approve computer registration
      
      slapos_cloud: implement asJSONText for software instance
      
      slapos_cloud: Add JSON Schema to Software Installation
      
      slapos_cloud: add preferred_jio_api_url to SlapOS Preferences
      
      slapos_cloud: make a version of _getSoftwareInstallationFromUrl public that doesn't raise NOTFound
      
      slapos_cloud: make getSoftwareInstallationFromUrl public and remove except NotFound
      
      * NotFound Errors are now handled by API
      
      slapos_cloud: Compute Partition Mixin getSoftwareInstance is public
      
      slapos_cloud: Add asJSONText on Software Installation
      
      slapos_cloud: Improve Software Instance as JSON Text
      
      slapos_cloud: Add getSoftwareInstanceObject to Slapos Catalog Tool Mixin
      
      slapos_cloud: Add retention delay in sla in instance structure
      
      slapos_cloud: Software Instance data schema include retention delay
      
      slapos_cloud: wip Software Instance add access status and processing timestamp
      
      slapos_cloud: Software instance dedicated update sucessor list uses list and is accessible
      
      slapos_cloud: Software Instance asJSON include SSL key and certificate
      
      slapos_cloud: Software Instance Schema put X509 in a sub-object
      
      slapos_cloud: Software Instance Schema fix typo on root_instance_title
      
      slapos_cloud: Software Instance clean asJSON Text add full_ip_list and remove relative_url
      
      slapos_cloud: SoftwareInstance As JSON Text always use Software Instance Schema
      
      slapos_cloud: Remove certificates from Software Instance JSON Object
      
      slapos_cloud: Catch not found computer when getting compute partition
      
      slapos_cloud: Software Instance schema, give more information in connection parameters
      
      slapos_cloud: Add getSlapTimestamp method
      
      The Slap Timestamp represent the last date a relevant modification has
      been done to the object.
      
      slapos_cloud: Software Instance add handle for slap_state draft
      
      slapos_cloud: Add getJSONSchemaUrl method
      
      This is an attempt to provide stability to the Schema URL and by extension to asJSONText
      With absolute url usage used to calculate the Schema URL the url change according to the url being used
      
      slapos_cloud: SlapTimestamp for Software Instance takes into account hosted shared instance
      
      slapos_cloud: Add jIO API Revision to Shared and Software Instance
      
      slapos_cloud: Fix add missing JIOAPIRevisionMixin on Instances portal type
      
      slapos_cloud: add jio api revision on Software Installation and Compute Node
      
      slapos_cloud: JIO API Revision depend on web section
      
      slapos_cloud: Fixes to Software Instance Document and ip list is empty for shared instances
      
      * getSlapTimeStamp use unrestricted method
      * use sort by jip_api_revision and not slap_date when sorting shared instances to calculate timestamp
      * ip list is empty for shared instances
      
      slapos_cloud: Add missing JIOAPIRevisionMixin to necessary document
      
      slapos_cloud: Add missing dependency to erp5_api_style
      
      slapos_cloud: remove unecessary elements from Software Installation JSON
      
      slapos_cloud: add missing portal type in Software Installation asJSONText
      
      slapos_cloud: Add useRevision to SoftwareInstance
      
      slapos_cloud: Only add api_revision to JSON Data when defined
      
      slapos_cloud: something on Software Installation
      
      slapos_cloud: getComputePartitionUid
      43bc72f5
    • Romain Courteaud's avatar
      WIP: erp5_json_rpc_api: add JSON RPC Service portal type · ab24dacc
      Romain Courteaud authored
      This new Web Service can be configured to define a list of entry points associated to JSON Form.
      
      Those entry points are accessed by a client by doing an HTTP Post with a JSON input body.
      The input JSON is validated by the JSON Form.
      
      An output JSON body is expected as response.
      ab24dacc
    • Romain Courteaud's avatar
      slapos_panel: use hateoas action filter script · fbd57c1a
      Romain Courteaud authored
      It allows to reuse the erp5js header gadget.
      
      See nexedi/erp5!2039
      fbd57c1a
    • Romain Courteaud's avatar
    • Rafael Monnerat's avatar
      slapos_panel: Fixup if subscription request is a temp object · aa03f107
      Rafael Monnerat authored
        If you access the listbox before the subscription request is indexed the link is broken on the listbox.
      
        patch provided by: Romain Courteaud.
      aa03f107
    • Romain Courteaud's avatar
      slapos_panel: create temp subscription request with shadow user · d7e310a5
      Romain Courteaud authored
      It prevents Unauthorized, as only owner can access the temp object
      d7e310a5
    • Romain Courteaud's avatar
      slapos_panel: fix outdated link · be9bec00
      Romain Courteaud authored
      be9bec00
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      359d36b3
    • Romain Courteaud's avatar
  2. 27 Jan, 2025 1 commit
  3. 24 Jan, 2025 2 commits
  4. 14 Jan, 2025 9 commits
  5. 13 Jan, 2025 2 commits
    • Thomas Gambier's avatar
      Release 1.14.2 · 8e0ca4c2
      Thomas Gambier authored
      8e0ca4c2
    • Alain Takoudjou's avatar
      slapos.grid.promise: prevent json file corruption while updating data · d42de18b
      Alain Takoudjou authored
      history and statistics files are sometimes corrupted because of invalid json
      
      We do 2 things to improve this:
       1. we use json.load to read the previous file (this will detect if the file is corrupted)
       2. we use json.dump to write the entire file at once in a temporary file and then we move this file to be atomic.
      
      Probably this will consume more resources.
      
      See merge request !728
      d42de18b
  6. 10 Jan, 2025 2 commits
  7. 09 Jan, 2025 2 commits