Update Aerie-CLI expanded sequence link query to handle conflict

Open
#123 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
graphql, python
Domain
api, cli

Research direction

Locate the Aerie-CLI expanded sequence link query that creates the sequence-to-simulated-activity association. Compare it with the mutation shown in the issue and verify that linking an activity already associated with another sequence no longer produces a uniqueness violation.

Written by the indexing model from the issue text.

Description

enhancement

The UI has this built into the query:

mutation InsertSequenceToActivity($input: sequence_to_simulated_activity_insert_input!) {
  sequence: insert_sequence_to_simulated_activity_one(object: $input, on_conflict: {constraint: sequence_to_simulated_activity_primary_key, update_columns: [seq_id]}) {
    seq_id
  }
}

This will prevent uniqueness violations when trying to link activities to a sequence that are already currently linked to another sequence.

Dominant language
Python
Stars
5
Forks
7
Avg merge
3d 14h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NASA-AMMOS/plandev-cli

All issues in NASA-AMMOS/plandev-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.