Skip to content

Commit 183bcfd

Browse files
authored
removed Flex notice on report (#1967)
1 parent d0b5263 commit 183bcfd

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/FeatureMetadata.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ public String getFeatureName() {
1616
return featureName;
1717
}
1818

19-
public String getFeatureGroup() {
20-
return featureGroup;
21-
}
22-
2319
public String getDocUrl() {
2420
String formattedFeatureName = featureName.toLowerCase().replace(' ', '-');
2521
String formattedFeatureGroup = featureGroup.toLowerCase().replace(' ', '_');

main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/FeedMetadata.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -618,14 +618,4 @@ public void setFilenames(ImmutableSortedSet<String> filenames) {
618618
public ImmutableSortedSet<String> getFilenames() {
619619
return filenames;
620620
}
621-
622-
public Boolean hasFlexFeatures() {
623-
return specFeatures.keySet().stream()
624-
.anyMatch(
625-
feature ->
626-
feature.getFeatureGroup() != null
627-
&& feature.getFeatureGroup().equals("Flexible Services")
628-
&& !Objects.equals(feature.getFeatureName(), "Continuous Stops")
629-
&& specFeatures.get(feature));
630-
}
631621
}

main/src/main/resources/report.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,6 @@
221221
align-content: center;
222222
flex-wrap: wrap;
223223
}
224-
225-
.warning-display {
226-
padding: 10px;
227-
border: solid 2px orange;
228-
border-radius: 11px;
229-
width: fit-content;
230-
font-weight: bold;
231-
}
232224
</style>
233225

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

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

250-
<div th:if="${metadata}">
251-
<p class="warning-display" th:if="${metadata.hasFlexFeatures}">
252-
&#9888; This feed contains GTFS Flex features. Please note that GTFS Flex validation support is still in development.
253-
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>.
254-
</p>
255-
</div>
256-
257242
<p class="version-update" th:if="${summary.newVersionOfValidatorAvailable}">A new version of the <a
258243
href="https://github.com/MobilityData/gtfs-validator/releases">Canonical GTFS Schedule validator</a> is available!
259244
Please update to get the latest/best validation results.</p>

0 commit comments

Comments
 (0)