This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mutate(root, info, name=None, desc=None, cmd=None, tags=None, task_files=None): | |
try: | |
task_dict = {} | |
if name: | |
task_dict['name'] = name | |
if desc: | |
task_dict['desc'] = desc | |
if cmd: | |
task_dict['cmd'] = cmd | |
if tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@resource_op | |
def query_workflow_definitions(filters=None, deep_copy=False, params=None, | |
ignore_deleted=True, session=None, agent=None, return_dict=True): | |
filters = filters or {} | |
# Tags | |
q = session.query(Tag) | |
tags = q.all() | |
# Workflows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCxMWOUkyrNKuJPBjlEJVQefJgoVAOnpbKGLr9QaERHFdlNjlLOz1i3KhN5pskKneoIYHK6vZnsDRoX6pgMl31QvPVSPdO+Fnr5PsMY8xwSPstxpoV2Nxn4SzEURMIu8ItlXyrSyDI/0gJVS91VibMK2IjjB/rpy3Op4qkkla0yxjO/esFZ9g8V6yIOL/MWJ4iDW+IzSgn2SbihTMXlYP3jDNtitlsJw8McPW17WIWMQ1r/ARi0fKCLseGCi5GdIN1qLc1luZs2CEc+UKRMPOouc/NNoyzpwrTqAQnPvAIwV3VE4AOlSUriwtrBvJff0P2NdFN5vMKUJAx2XxnjgcbjucoZYg3/Y7yAXiCaltpjWVM05loezkgqWgBgoGF1oVgl4Ch4yR7rvRpoYl6JuFmQpMu7MUsmNmWLwpkbCt/RoBLONst4CVtD1NFU/l7u7Q7JJGOHNe8P8/b4XC+DlAkXQ7VDDii//eQ4Y4CnE8lCeDaPt/PEcovsoM0Rewe3uNmQhEOUH5qrcfU6ArqQHJLc8z2QoblALhYIuzVSS8/wbxzVAtbHF3ivfi0W2UMePBXDXYxkaBLEkq0KXiLa5BG8lWdfcFrXnBPn4aDsGmG9SG4IzhG7rXHGjc83UrzLl0TtnQrxN3Fia4OzejtGOjA1MrVgTqsuxjZ1UsBdDWAz/Q== lawrence.vanderpool@gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from typing import Generator, List | |
from time import perf_counter | |
# This establishes a Type alias, so our annotations can be clearer | |
Filepath = str | |
class CensusRow(): | |
""" | |
A CensusRow object is yielded by Census.rows() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mutate(root, info, **args): | |
try: | |
item = inventory_api.get_item( | |
args['item'], | |
session=info.context['session'], | |
agent=info.context['user']) | |
if args['method'].lower() == 'remove': | |
item_qty_adjustment = item.remove_qty(args['qty']) | |
elif args['method'].lower() == 'add': | |
item_qty_adjustment =item.add_qty(args['qty']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should update the app state when the description changes', function () { | |
cy.get('textarea.sample-info-desc').clear().type(randomDescription) | |
cy.wait(1200) | |
cy.visit('/#/samples') | |
cy.contains(randomDescription) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Sample Detail page', function() { | |
beforeEach(function() { | |
cy.login() | |
cy.visit('/#/samples') | |
cy.get('.data-table tbody tr td a').first().click() | |
}) | |
it('should default to the dependencies tab', function () { | |
cy.url().should('include', 'dependencies') | |
}) | |
it('should have a collapsible info panel', function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
'sample info panel should be collapsible': function (browser) { | |
browser | |
.url(samplesUrl) | |
.waitForElementVisible('.data-table tbody tr td a', 5000) | |
.click('tbody tr td a') | |
.waitForElementVisible('#hide-panel', 5000) | |
.click('#hide-panel') | |
.waitForElementNotPresent('.content__left', 1000) | |
.assert.elementNotPresent('.content_left') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@resource_op(("sample", "update", Sample)) | |
def add_sample_dependencies(sample, parents=None, children=None, return_dict=True, | |
session=None, agent=None): | |
""" | |
Add set of parent and or child dependencies to a given Sample. | |
""" | |
if parents is not None: | |
for p_uuid in parents: | |
sample = add_dependency(sample, p_uuid, label='begat', return_dict=return_dict, | |
session=session, agent=agent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section> | |
<h1>Sample Filters</h1> | |
<h2>Filter by ID, type, owner, or date.</h2> | |
<section class="form-group"> | |
<label for="base-selection">Base Selection</label> | |
<select v-model="localFilters.inWorkflowInstance"> | |
<option selected value="null">All</option> | |
<option value="true">Submitted</option> | |
<option value="false">Unsubmitted</option> |