Skip to content

Conversation

jng34
Copy link
Member

@jng34 jng34 commented Aug 21, 2025

Fixes #1992

What changes did you make and why did you make them ?

  • Create Populate Projects script for jupyter notebook to update projects to managed by users
  • Create vrms-populate-projects-test database to run script on cloned users and projects

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

@trillium
Copy link
Member

Hey @jng34

From the call today we suggest:

  1. Make a copy of your branch eg branch-copy

Undo both of of your commits

  1. git reset @~2

Update .gitignore

Chat GPT suggests:

# Jupyter Notebook checkpoints
.ipynb_checkpoints/

# Jupyter runtime files
.jupyter/

# Hidden notebook state (metadata, autosaves)
*.nbconvert.ipynb
*.nbconvert/

# VSCode / PyCharm or other IDE junk (optional, but useful)
.vscode/
.idea/

# Python cache
__pycache__/
*.pyc
*.pyo
*.pyd
*.pkl

# OS files
.DS_Store
Thumbs.db
  1. Add .gitigore and commit

  2. Add the notebook changes you have in your two commits

  3. Once satisfied with that process, go back to your current branch eg populateProjectsJupyterNotebook

  4. Bring changes from updated branch to your current branch:

git reset --hard branch-vopy or git merge branch-copy should both work

@jng34 jng34 force-pushed the populateProjectsJupyterNotebook branch from 1153e29 to def66a2 Compare August 27, 2025 19:14
@jng34
Copy link
Member Author

jng34 commented Aug 27, 2025

@trillium
Thanks for those steps. I updated the .gitignore file and had to perform additional steps to get it to work.

PerplexityAI suggested that after cloning the branch, I run the following code to remove unwanted files from Git index to reapply gitignore:

git rm -r --cached .
git add .

and then

git filter-branch --tree-filter 'git rm -r --cached --ignore-unmatch venv/' --prune-empty -- --all

to rewrite history to remove ignored files from past commits.

Lastly,

git push origin populateProjectsJupyterNotebook --force

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 script populateProjects.js
2 participants