Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-436

Code duplication batch request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • V2 2.0.1
    • V2 2.0.1
    • odata2-core

    Description

      Within the batch parser exists some duplicated code. The duplication is based on the same structure of the batch request and the batch response. So I would like to suggest a refactoring to create a common basis for batch requests and responses, also.

      In my opinion the parsing could be split up in two parts. The common part could parse the syntactic structure of a batch message. Based on the type of message, a suitable semantic parser will be chosen. The semantic parser validates the input and creates the necessary ODataRequests or ODataSingleResponses.

      I attached a patch.

      Attachments

        1. BatchPatch3.diff
          12 kB
          Christian Holzer
        2. BatchPatch.diff
          35 kB
          Christian Holzer
        3. BatchPatch.diff
          51 kB
          Christian Holzer
        4. batchRefactoring.patch
          314 kB
          Christian Holzer
        5. batchRebase.diff
          186 kB
          Christian Holzer

        Activity

          People

            chrisam Christian Amend
            cholzer Christian Holzer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: