Git Product home page Git Product logo

Comments (3)

chrismaddalena avatar chrismaddalena commented on July 18, 2024

Hey @caderob, it looks like you're trying to reference observationday as a foreign key on the Observation table. You'd have to add your observationday table to the database and create a foreign key field on the Observation table. If this is meant to be the date you added the observation to the report, you can add a timestamp field that tracks that.

To group by day like findings are grouped by severity, you'd also need to create a custom filter like the one used for findings (e.g., group_by_severity). You need the equivalent of this for sorting by "observation day":

            {% group_by_severity report.reportfindinglink_set.all as severity_groups %}
            {% for group, values in severity_groups.items %}

As for the DREAD scoring, the built-in calculator uses CVSS v3 for now. There is a PR in progress to add CVSS v4. DREAD isn't planned, but I'd consider a PR for it if someone had the time to add it.

from ghostwriter.

caderob avatar caderob commented on July 18, 2024

Thanks for the input! I added 'observation_day' to the Observation table and I can see it has a 'null' value when I export my report to json, so that worked!

Now, I'm trying to update the front end Observation form to allow the user to enter the Observation Date before or after the Observation Description in a date format way like the image attached.

171986674484318727

Could you help me figure out which file/s to amend to add an additional date field on the front end under each Observation?

Thanks!

from ghostwriter.

chrismaddalena avatar chrismaddalena commented on July 18, 2024

Take a look at the other forms with date fields. You can copy one of those, like the start date field configuration from the project form. You'll add your new date field to the observation form.

from ghostwriter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.