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

Prototype concept and scheme serializers #103 #104

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Oct 19, 2024

Description

Testing/demo instructions (work in progress)

  • general project setup updated in Spruce up installation instructions #109
  • consider pip install ipython to get tab completion on object attributes in a manage.py shell while you poke around
    - ensure you've reloaded graphs from main to get slugs set on concept & graph models
  • checkout core branch jtw/pythonic-resource-models
  • checkout arches-references branch jtw/pythonic-resource-models-compatibility
  • view the browsable apis referred to in urls.py
  • NOTE: for resource instance creates, when posting back, you'll need to fiddle with the form entry for I18n_TextField's like name, by putting in some json like {"en": "some value"}

Closes #103

@jacobtylerwalls jacobtylerwalls force-pushed the jtw/prototype-serializers branch 2 times, most recently from 4d57d39 to 03b4790 Compare October 22, 2024 17:26
@jacobtylerwalls jacobtylerwalls changed the base branch from jtw/new-tree-front-end to main October 22, 2024 17:26
@jacobtylerwalls jacobtylerwalls changed the title [WIP] Prototype DRF serializers #103 Prototype concept and scheme serializers #103 Oct 30, 2024
@jacobtylerwalls
Copy link
Member Author

Be aware if using the DRF browsable API that some slowness might be added by the rendering of some of the form inputs. Add this to settings_local.py to temporary disable the browsable API if testing against a lot of data:

The relevant override is the DEFAULT_RENDERER_CLASSES:

REST_FRAMEWORK = {
    "DEFAULT_PERMISSION_CLASSES": ["rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly"],
    "DEFAULT_RENDERER_CLASSES": ("rest_framework.renderers.JSONRenderer",)
}

@jacobtylerwalls jacobtylerwalls changed the base branch from main to jtw/new-tree-front-end November 6, 2024 16:43
@jacobtylerwalls jacobtylerwalls marked this pull request as ready for review November 20, 2024 18:47
@jacobtylerwalls
Copy link
Member Author

Merging based on verbal approval at standup, @aarongundel to resolve merge conflicts.

@jacobtylerwalls jacobtylerwalls merged commit 09c1a24 into jtw/new-tree-front-end Nov 20, 2024
3 of 6 checks passed
@jacobtylerwalls jacobtylerwalls deleted the jtw/prototype-serializers branch November 20, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create ORM-like interactions for schemes
1 participant