Skip to content

Commit

Permalink
removed Flex notice on report (#1967)
Browse files Browse the repository at this point in the history
  • Loading branch information
qcdyx authored Feb 4, 2025
1 parent d0b5263 commit 183bcfd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ public String getFeatureName() {
return featureName;
}

public String getFeatureGroup() {
return featureGroup;
}

public String getDocUrl() {
String formattedFeatureName = featureName.toLowerCase().replace(' ', '-');
String formattedFeatureGroup = featureGroup.toLowerCase().replace(' ', '_');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,4 @@ public void setFilenames(ImmutableSortedSet<String> filenames) {
public ImmutableSortedSet<String> getFilenames() {
return filenames;
}

public Boolean hasFlexFeatures() {
return specFeatures.keySet().stream()
.anyMatch(
feature ->
feature.getFeatureGroup() != null
&& feature.getFeatureGroup().equals("Flexible Services")
&& !Objects.equals(feature.getFeatureName(), "Continuous Stops")
&& specFeatures.get(feature));
}
}
15 changes: 0 additions & 15 deletions main/src/main/resources/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,6 @@
align-content: center;
flex-wrap: wrap;
}

.warning-display {
padding: 10px;
border: solid 2px orange;
border-radius: 11px;
width: fit-content;
font-weight: bold;
}
</style>

</head>
Expand All @@ -247,13 +239,6 @@ <h1>GTFS Schedule Validation Report</h1>

<p>Use this report alongside our <a href="https://gtfs-validator.mobilitydata.org/rules.html">documentation</a>.</p>

<div th:if="${metadata}">
<p class="warning-display" th:if="${metadata.hasFlexFeatures}">
&#9888; This feed contains GTFS Flex features. Please note that GTFS Flex validation support is still in development.
You can manually review all the validation rules for Flex data <a href="https://docs.google.com/document/d/1QABoIeOdR6lAB7A6_X6WIbZwC7EnAIZvm_hRNwNQeoI/edit#heading=h.mky28yjwt08z">here</a>.
</p>
</div>

<p class="version-update" th:if="${summary.newVersionOfValidatorAvailable}">A new version of the <a
href="https://github.com/MobilityData/gtfs-validator/releases">Canonical GTFS Schedule validator</a> is available!
Please update to get the latest/best validation results.</p>
Expand Down

0 comments on commit 183bcfd

Please sign in to comment.