Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot republish graph after adding parent/child nodegroup configuration #11570

Open
jacobtylerwalls opened this issue Oct 23, 2024 · 0 comments · May be fixed by #11609
Open

Cannot republish graph after adding parent/child nodegroup configuration #11570

jacobtylerwalls opened this issue Oct 23, 2024 · 0 comments · May be fixed by #11609
Assignees
Labels
future graphs Type: Bug Something isn't working

Comments

@jacobtylerwalls
Copy link
Member

dev/8.0.x
Graph Designer:

  • Create graph
  • Create one child node
  • Save edits
  • Create one grandchild node
  • Save edits
  • Create new publication and confirm dialog
  • Grandchild node: toggle "Place node(s) in separate card" to ON
  • Save edits
  • Create new publication and confirm dialog
[23/Oct/2024 09:45:04] "POST /graph_has_unpublished_changes/5defdbf2-914d-11ef-8101-1ea1ac521291 HTTP/1.1" 200 33
2024-10-23 09:45:12,810 arches.app.views.graph ERROR    NodeGroup matching query does not exist.
Traceback (most recent call last):
  File "/Users/jwalls/django/django/db/models/fields/related_descriptors.py", line 239, in __get__
    rel_obj = self.field.get_cached_value(instance)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/django/django/db/models/fields/mixins.py", line 37, in get_cached_value
    return instance._state.fields_cache[self.cache_name]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'nodegroup'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jwalls/prj/arches/arches/app/views/graph.py", line 693, in post
    source_graph.update_from_editable_future_graph()
  File "/Users/jwalls/prj/arches/arches/app/models/graph.py", line 2582, in update_from_editable_future_graph
    _update_source_nodegroup_hierarchy(future_card.nodegroup)
                                       ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/django/django/db/models/fields/related_descriptors.py", line 257, in __get__
    rel_obj = self.get_object(instance)
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/django/django/db/models/fields/related_descriptors.py", line 220, in get_object
    return qs.get(self.field.get_reverse_related_filter(instance))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/django/django/db/models/query.py", line 630, in get
    raise self.model.DoesNotExist(
arches.app.models.models.NodeGroup.DoesNotExist: NodeGroup matching query does not exist.
Internal Server Error: /graph/5defdbf2-914d-11ef-8101-1ea1ac521291/publish
[23/Oct/2024 09:45:12] "POST /graph/5defdbf2-914d-11ef-8101-1ea1ac521291/publish HTTP/1.1" 500 145
@jacobtylerwalls jacobtylerwalls added Type: Bug Something isn't working future graphs labels Oct 23, 2024
@chiatt chiatt added this to pipeline Oct 23, 2024
@chrabyrd chrabyrd self-assigned this Nov 5, 2024
@chrabyrd chrabyrd linked a pull request Nov 8, 2024 that will close this issue
11 tasks
chrabyrd added a commit that referenced this issue Nov 8, 2024
@jacobtylerwalls jacobtylerwalls moved this to 🏗 In Progress in pipeline Nov 12, 2024
chrabyrd added a commit that referenced this issue Nov 12, 2024
chrabyrd added a commit that referenced this issue Nov 12, 2024
chrabyrd added a commit that referenced this issue Nov 12, 2024
chrabyrd added a commit that referenced this issue Nov 12, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 14, 2024
chrabyrd added a commit that referenced this issue Nov 15, 2024
chrabyrd added a commit that referenced this issue Nov 20, 2024
chrabyrd added a commit that referenced this issue Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future graphs Type: Bug Something isn't working
Projects
Status: 👀 In Review
Development

Successfully merging a pull request may close this issue.

2 participants