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

Origin/user friendly searching #14

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

EdblackGitHub
Copy link

Description: Added Manual user-friendly option for our code to search CCVs

Issue: Adding a User-friendly option to the CCVs searching

Dependencies: List dependencies on open pull requests, other issue/work tickets, etc.

Merge Deadline: Merge today 11/15/2024

Pre-Merge Checklist:

  • I have ensured this code follows the style guidelines of this project.
  • I have performed a comprehensive self-review of the code.
  • I have included comments clarifying hard-to-understand areas of the code.
  • I have updated the documentation corresponding to my change(s).
  • I have confirmed the code executes properly on my local environment.
  • I have confirmed all new/modified data models are structured correctly.
  • I have included all necessary database migration files.
  • I have verified that all new and existing tests pass.
  • I have received approval from the requisite number of reviewers.
  • I have squashed all working commits into as few final commits as reasonably possible.
  • I have confirmed Github reports all automated tests/checks are passing.

Post-Merge Checklist:

  • Delete working branch @ Github repository
  • Pull latest master branch to local repository
  • Delete working branch @ local repository

app/uid/views.py Outdated
# Neo4j connection details
NEO4J_USERNAME = os.getenv('NEO4J_USERNAME', 'neo4j') # Default username if env var not set
NEO4J_PASSWORD = os.getenv('NEO4J_PASSWORD', 'password') # Default password if env var not set
NEO4J_HOST = os.getenv("NEO4J_HOST", "localhost") # Default to localhost if not set
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole block shoul be removed -- get the connection string from settings.

from django.conf import settings

connection_url = settings.DATABASE_URL

@vbhayden
Copy link
Member

@EdblackGitHub has this been merged with main recently? The UID generation stuff in uid/views.py looks dated.

@EdblackGitHub
Copy link
Author

EdblackGitHub commented Nov 20, 2024 via email

@vbhayden
Copy link
Member

So the most recent version of that views file is here:

https://github.com/adlnet/LDSS-XSS/blob/main/app/uid/views.py#L60

and the corresponding line in most recent version of this branch is showing up as:

https://github.com/adlnet/LDSS-XSS/blob/origin/User_Friendly_searching/app/uid/views.py#L232

Your local one might be behind, if you tried to merge just the local branch without retrieving the most recent remote main.

# self.link_to_term(term)


class Alias(StructuredNode):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class looks like it's more related to terms yeah? Why is it in the UID portion of the project etc.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are in UID folder as I asked Florian if he had an ideal location or a preference for the search function location and he said I could leave it in the UID folder.

depends_on:
- neo4j
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The neo4j dependency should not be removed here, as the app container does definitely depend on it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhh, I did not touch the .yml file for the manual search function.

@vbhayden
Copy link
Member

Just merged in main into this one locally and things did update accordingly, so maybe try again on your end?

For the compose file, the main's contents for that block are currently:

    depends_on:
      db-xss:
        condition: service_healthy
      neo4j:
        condition: service_healthy

which are a good bit different, yeah? Double check that you did the merge order correctly, or this will end up being a big soup sandwich when it hits main.

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.

2 participants