Commit Graph

33 Commits

Author SHA1 Message Date
Lacey Williams Henschel
8db6603814 Allow admin users to disallow other users from updating profile pictures.
- Add field can_update_image to User model and user admin
- Prevent user from updating photo if they field is false
- Add docs
2023-11-08 11:23:40 -08:00
Frank Wiles
030b3a882d Add some basic docs info about the News system 2023-11-02 06:15:33 -05:00
Spencer Strickland
dbcc42c73f Dependency for elasticsearch + Updates to docs 2023-10-25 10:58:58 -05:00
Lacey Williams Henschel
4f4e44ae1a Only show beta releases in drop-down selectively
- Add docs on dependency management
- Add manager method for versions in drop-down
- Add model method for getting version parts
- Standardize version names in fixtures
- Change manager method used to get versions for dropdown
- Change where ordering happens
- Fix test
2023-10-18 13:25:28 -07:00
Lacey Williams Henschel
c251ff9671 Import most recent beta release
- Split import version into own task
- Add beta field to Version model
- Add task to import most recent beta version
- Accommodate beta releases in Artifactory downloads
- Fix bug in getting proper download files for beta releases
- Add ability to delete old beta versions when importing new beta version
- Hide release notes link for beta releases
- Comment why we don't get old downloads
- Add management command to get most recent beta release
- Add beta import to boost setup command
- Add docs on beta release import
- Get newest beta release when importing releases
- Add manager method to get most recent beta release
- Skip a couple failing tests after confirming behavior is working as expected
2023-10-13 09:32:16 -07:00
Lacey Henschel
f49bbf739c Add gitmodules to table of contents 2023-10-11 14:47:29 -07:00
Lacey Williams Henschel
73c310fd1c Mark users as claimed when they reset passwords
from key

Mark users as claimed when they reset password from profile page

Add method to claim user, and use that method instead

Add docs on unclaimed user accounts
2023-10-06 08:10:30 -07:00
Lacey Williams Henschel
5f6125d907 Add examples to readme, add sample gitmodules 2023-10-05 13:35:45 -07:00
Lacey Williams Henschel
0aa1960ee7 Add example libraries.json files 2023-10-05 13:35:45 -07:00
Lacey Williams Henschel
863bca5005 - Add API endpoint to import versions
- Move import library versions logic into task
- Add API docs
2023-09-28 09:40:12 -07:00
Lacey Williams Henschel
8197ac77da Move import versions logic to tasks 2023-09-25 17:35:09 -07:00
Lacey Williams Henschel
214f37986b Streamline import commands and add docs
Add data JSONField to LibraryVersion model

Add fields to library list admin display

Add commands to update authors and maintainers individually

Exclude data JSONField from view querysets

Silence some output from the library-version import management command

Remove unused field from the library-version import management command

Save library-versions more cleanly in the library-version import management command

Remove loading maintainers from the import command, since they now have their own command

Add docs for new commands

Add boost_setup command to run one command to import all data

Add docs on first-time data import

Better exception handling, quieter flow, reduce GH API calls

Graceful handling if there is not a github repo

Pass most recent 12 months to commit counts command

Add some user-friendly output to setup command
2023-09-19 11:17:05 -07:00
Lacey Williams Henschel
4712551827 Improvements to import/update libraries command
- Remove outdated options, quiet some logging
- Don't add authors yet -- need to add maintainers first
- Add GitHub token option to update_libraries
2023-09-07 15:58:07 -07:00
Lacey Williams Henschel
1d26e13548 Add docs-level README with table of contents, link to it from main README 2023-09-07 14:14:09 -07:00
Lacey Williams Henschel
f57b5dcade Add setting for minimum Boost version to import 2023-09-07 14:09:40 -07:00
Lacey Williams Henschel
7e847cc17f - Move GitHub retrieval and parser classes to the core/ app from the libraries/ app; moved tests, too, and updated import statements
- Add `verbose` flag to `import_versions` to allow user to silence the output
- Removed some unused options from `import_versions`
- Moved the exclusion logic in `import_versions` to its own function
- Stop getting the `github_url` from the github API. Instead, generate it from the tag. (reason: in older tags, the best URL GitHub gives us is a less-useful one to a _commit_ and not a tag. We can generate the url, though.)
- Move the retrieval of the `release_date` to its own task, so it can be loaded async. (reason: it's a separate API call per version to get the date)
- Make `release_date` optional on the `Version` model (reason: make the field easier to load async)
- Simplify logic to retrieve `release_date` and just always retrieve it from the commit
- Stop loading the version `description` from GitHub. We don't use it on the frontend anyway, and in all but the most recent couple of versions, the `description` is the comment from the commit, which is usually not useful.
2023-08-31 15:32:16 -07:00
Lacey Williams Henschel
eeb615ceff Load docs urls for library-versions from S3
- Add documentation_url to LibraryVersion table
- Retrieve the documentation_url in the view
- If the documentation_url is not present, show the Version documentation_url
- Hide the "https://" in the template
- Add Celery task to retrieve the documentation_urls from the libraries page in S3 and match them to import_library_versions
- Add HTML helper function to extract the libraries and docs URLs from the HTML
- Add one-time command to import docs urls
- Load the documentation_urls in the command that loads all library-versions
- Add a min-release option to the command that loads library-versions
- Document the new command and changes to the existing command
2023-08-04 08:40:00 -07:00
Lacey Williams Henschel
6a2a2e4ceb Remove sample data commands 2023-08-03 16:17:06 -07:00
Lacey Williams Henschel
da1a28451d Skip time-consuming github data for local dev 2023-07-21 10:32:37 -07:00
Lacey Williams Henschel
b897e2d679 Explain an import error log 2023-07-20 09:23:00 -07:00
Lacey Williams Henschel
b15a6f19de Redirect allauth callback urls in the static content view
- Override django-allauth template
- Add docs on local dev social accounts
2023-07-12 06:25:23 -07:00
Natalia
a8cd8f507a Ran pre-commit run -a
Completed runs of black and rest of pre-commit checks.
2023-05-30 23:21:53 -03:00
Lacey Williams Henschel
e238649e58 Add management command to import commit counts 2023-05-26 09:48:55 -07:00
Lacey Williams Henschel
f292194e19 Spelling correction
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
2023-05-18 09:25:20 -07:00
Lacey Williams Henschel
dedd103807 Add command to import library-versions 2023-05-18 09:25:20 -07:00
sdarwin
0ac2857bf4 Docs: development notes 2023-05-16 14:35:04 -07:00
Lacey Williams Henschel
2b4c0a9399 📝 Add options for skipping existing versions and passing an API token 2023-05-16 11:19:37 -07:00
Lacey Williams Henschel
488ca4d3ba Final command, docs, linter 2023-05-15 10:19:32 -07:00
Lacey Williams Henschel
eb0a6884b6 168 import versions (#295)
* WIP get old versions

* 🏦 Add URL and data dict to Version model

* 🔧 Some refactoring how we get tag data

* First pass at uploading versions

* 🔧 Move parsing logic to the parser and add tests

* Retrieve url and save json data

* Improve version upload docs

* Linter
2023-05-11 05:59:49 -07:00
Lacey Williams Henschel
2a505764ce Create syncing_data_with_github.md 2023-05-08 13:06:07 -07:00
Lacey Williams Henschel
9982ab3076 📚 Add docs on how we deal with static content 2023-04-18 16:15:39 -07:00
Lacey Williams Henschel
dd00808e8e 📚 Add env var docs 2023-04-18 15:51:13 -07:00
Lacey Williams Henschel
f33a9e7665 📚 Start some management command docs 2023-03-16 12:59:35 -07:00