Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A AsapoWorker
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FS-SC
  • AsapoWorker
  • Merge requests
  • !20

Feat: Add parameters to pre_scan

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mikhail Karnevskiy requested to merge feat/meta_to_param into master Feb 22, 2021
  • Overview 21
  • Commits 12
  • Pipelines 12
  • Changes 4

@tim.schoof Metadata stream brings parameters to the worker function pre_scan. In this MR there parameters can be described in nested class Parameters. If this class exists, parameters are compared with information coming from Metadata stream.

  • If Parameters are not described in the worker class, nothing changed compared to what was before
  • If parameters are described, they are compared with information from Metadata stream.
    • If Some of described parameters are missing, error if raised.
    • If type of described parameters is standard and not coincides with one from metadata stream, error is raised.
    • If type of described parameter is not standard (can not be derived from json). Variable from metadata stream is casted to this type.
    • If Metadata have variables, which are not described in the Parameters of worker error is not raised. These variables may be used in the next worker of the pipeline.

Only some standard classes can be de-serialized from json of the metadata stream.

Edited Feb 22, 2021 by Mikhail Karnevskiy
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/meta_to_param

imprint | privacy | Conditions of Use