daveoconnor
cb5c4ab492
Added module flagging from libraries.json ( #1900 ) ( #1926 )
2025-09-30 14:35:26 -07:00
Brian Perrett
2981976b80
Add functionality to track LibraryVersion dependencies ( #1524 )
2024-12-16 14:28:33 -05:00
Greg Kaleka
44829f1556
Add category override mapping and use it in library update method ( #1411 )
...
Fixes #1034
- Adds a `CATEGORY_OVERRIDES` mapping
- Uses the override in `update_libraries` management command
### Manual testing
- Ran `./manage.py import_versions`
- Ran `./manage.py update_libraries`
- Static String had the correct category
<img width="440" alt="Screenshot 2024-11-04 at 5 24 05 PM"
src="https://github.com/user-attachments/assets/4b0cf4cb-15e2-4337-9284-7659afd40643 ">
### Post-deploy tasks
- Ensure `update_libraries` is run
- Verify **Container** category is orphaned
- Delete **Container** category
Co-authored-by: Greg Kaleka <gkaleka@energy-solution.com >
2024-11-05 13:49:00 -05:00
Brian Perrett
bb28aa2d12
Remove calls to deleted tasks. ( #1345 )
2024-10-25 11:43:48 -07:00
Lacey Williams Henschel
00e68cf219
Remove unused Library model fields
2023-09-01 08:16:33 -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
f8475f1009
Refactor to fetch API commit data in method that adds the CommitData objects
2023-07-10 06:22:36 -07:00
Lacey Williams Henschel
f82d299559
Refactor to make update methods simpler, remove duplicate method
2023-07-10 06:22:36 -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
bd6d229248
Minor bugfixes
2023-05-26 09:48:55 -07:00
Lacey Williams Henschel
5115efd421
Add method to save commit data to model
2023-05-26 09:48:55 -07:00
Lacey Williams Henschel
f3fbe63827
Refactor get_commits to include dates
2023-05-26 09:48:55 -07:00
Lacey Williams Henschel
9dee6b0e5c
Add methods to get number of commits per month
2023-05-26 09:48:55 -07:00
Lacey Williams Henschel
9b7d64a725
☔ Fix test
2023-05-19 12:55:02 -07:00
Lacey Williams Henschel
649b7add15
Minor corrections
2023-05-19 12:55:02 -07:00
Lacey Williams Henschel
04ecc158d0
🏦 Add date field, save date
2023-05-19 12:55:02 -07:00
Lacey Williams Henschel
0936ab2dd9
WIP testing
2023-05-19 12:55:02 -07:00
Lacey Williams Henschel
1bb1da3dc8
☔ Fix test
2023-05-18 09:25:20 -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
Frank Wiles
315a863e78
Fix black formatting
2023-04-29 16:52:37 -05:00
Frank Wiles
c32b06e65e
Update to Pyhton 3.11
2023-04-29 16:41:27 -05:00
Frank Wiles
530fc08f98
Skip GH API test for now
2023-04-26 10:59:07 -05:00
Lacey Williams Henschel
7ffa23164c
🔧 Refactor maintainers into GitHub process
2023-03-27 12:39:18 -07:00
Lacey Williams Henschel
87cb14e991
🔧 Refactor contributor methods into GitHub processes
2023-03-27 12:08:52 -07:00
Lacey Williams Henschel
0c62320304
🔧 ☔ Final refactoring and tests
2023-03-24 14:37:38 -07:00
Lacey Williams Henschel
8eaa78e2c9
🚧 Refactor GitHub API calls into own class
2023-03-23 13:21:09 -07:00
Lacey Williams Henschel
0070a37e6c
✨ 🚧 Add function to get user from GH API
2023-02-16 09:54:40 -08:00
Lacey Williams Henschel
52bcaff7ed
✨ Import PRs for a library
2022-12-16 10:39:36 -08:00
Lacey Williams Henschel
e8d4bbd030
🐛 GH issue titles can be quite long; truncate them
2022-12-15 16:02:42 -08:00
Lacey Williams Henschel
eed160eb68
✨ Download all issues for a library from GH
2022-12-15 10:48:38 -08:00
Lacey Williams Henschel
36971c0faf
✨ Add last updated from GitHub API
2022-12-02 09:47:41 -08:00
Lacey Williams Henschel
307d587e65
☔ Add tests of library importer
2022-11-30 14:57:12 -08:00