Make SonarQube Parser use creationDate for Date#13919
Merged
valentijnscholten merged 4 commits intoDefectDojo:bugfixfrom Dec 22, 2025
Merged
Make SonarQube Parser use creationDate for Date#13919valentijnscholten merged 4 commits intoDefectDojo:bugfixfrom
valentijnscholten merged 4 commits intoDefectDojo:bugfixfrom
Conversation
Maffooch
reviewed
Dec 17, 2025
Maffooch
requested changes
Dec 17, 2025
Maffooch
reviewed
Dec 17, 2025
Maffooch
approved these changes
Dec 18, 2025
valentijnscholten
approved these changes
Dec 18, 2025
Comment on lines
+29
to
+32
| try: | ||
| date = str(dateutil.parser.parse(issue.get("creationDate")).date()) | ||
| except (ValueError, TypeError, dateutil.parser.ParserError): | ||
| date = timezone.now() |
Member
There was a problem hiding this comment.
not a blocker, but could save some repeated code by making this a helper function for all parsers?
Contributor
There was a problem hiding this comment.
I like this idea! I've got some ideas for parser improvements to discuss with you at some point too. Let's hold on this helper for now
blakeaowens
approved these changes
Dec 22, 2025
Maffooch
added a commit
to valentijnscholten/django-DefectDojo
that referenced
this pull request
Feb 16, 2026
* Sonarqube parse creationDate * added better handling of date conversions * Apply suggestions from code review * Update dojo/tools/sonarqube/sonarqube_restapi_json.py --------- Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[sc-12289]