Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI-2609 : DSL Link Methods #521

Merged
merged 9 commits into from
Oct 15, 2024
Merged

FI-2609 : DSL Link Methods #521

merged 9 commits into from
Oct 15, 2024

Conversation

vanessuniq
Copy link
Contributor

@vanessuniq vanessuniq commented Sep 10, 2024

Summary

This PR introduces new methods to streamline the addition of common link types. These methods simplify the process for test writers, allowing them to easily add predefined link types with minimal effort.

Key Changes:

  • New Methods Added:
    • report_issue_url: Adds a link for reporting issues.
    • source_code_url: Adds a link to the source code repository.
    • download_url: Adds a link to download the latest release version of the test kit.
    • ig_url: Adds a link to the implementation guide.

Testing Guidance

Demo suite was updated to use the new methods.

Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.04%. Comparing base (acdfb75) to head (3ecf040).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #521      +/-   ##
==========================================
+ Coverage   84.00%   84.04%   +0.03%     
==========================================
  Files         260      261       +1     
  Lines       11361    11385      +24     
  Branches     1252     1253       +1     
==========================================
+ Hits         9544     9568      +24     
  Misses       1807     1807              
  Partials       10       10              
Flag Coverage Δ
backend 92.16% <100.00%> (+0.04%) ⬆️
frontend 79.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


# @private
def add_predefined_link(type, url)
label = DEFAULT_TYPES[type]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should allow the default labels to be overridden. For example, a suite might want to link to multiple IGs.

#
# @param url [String] The URL to the source code repository.
# @return [Array<Hash>] The updated array of links.
def source_code(url)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these methods should have _url at the end.

}
]
source_code 'https://github.com/inferno-framework/inferno-core'
report_issue 'https://github.com/inferno-framework/inferno-core/issues'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should go ahead and include all of the defined link types here.

@@ -561,6 +561,17 @@ definitions:
type: "string"
input_instructions:
type: "string"
links:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a unit test verifying that these actually appear in the JSON api as described here.

@vanessuniq vanessuniq merged commit dce1b1d into main Oct 15, 2024
10 checks passed
@Shaumik-Ashraf Shaumik-Ashraf mentioned this pull request Oct 29, 2024
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.

2 participants