def get(self, **kwargs): releases = release_list(connexion.request) if not connexion.request.args.get("names_only"): requirements = dbo.releases.getPotentialRequiredSignoffs(releases) for release in releases: release["required_signoffs"] = serialize_signoff_requirements(requirements[release["name"]]) return serialize_releases(connexion.request, releases)
def get(self, **kwargs): releases = release_list(connexion.request) if not connexion.request.args.get('names_only'): for release in releases: requirements = dbo.releases.getPotentialRequiredSignoffs([release]) release['required_signoffs'] = serialize_signoff_requirements(requirements) return serialize_releases(connexion.request, releases)
def get(self, **kwargs): opts = {} if connexion.request.args.get("product"): opts["product"] = connexion.request.args.get("product") if connexion.request.args.get("name_prefix"): opts["name_prefix"] = connexion.request.args.get("name_prefix") if connexion.request.args.get("names_only"): opts["nameOnly"] = True releases = dbo.releases.getReleaseInfo(**opts) if not opts.get("names_only"): requirements = dbo.releases.getPotentialRequiredSignoffs(releases) for release in releases: release["required_signoffs"] = serialize_signoff_requirements( requirements[release["name"]]) return serialize_releases(connexion.request, releases)