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

Remove branding_url from Agency and Route, route_bikes_allowed from Route #299

Merged
merged 8 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:

env:
LANG: ${{ matrix.locale }}
MAVEN_ARGS: "--no-transfer-progress -Dstyle.color=always"

steps:
- uses: actions/checkout@v4
Expand All @@ -42,7 +43,8 @@ jobs:
cache: 'maven'

- name: Test project with Maven
run: mvn --no-transfer-progress test package
run: |
mvn $MAVEN_ARGS test package

cli-integration-tests:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ public final class Agency extends IdentityBean<String> {
@CsvField(optional = true)
private String email;

@CsvField(optional = true)
private String brandingUrl;

public Agency() {

}
Expand All @@ -61,7 +58,6 @@ public Agency(Agency a) {
this.timezone = a.timezone;
this.lang = a.lang;
this.phone = a.phone;
this.brandingUrl = a.brandingUrl;
this.email = a.email;
this.fareUrl = a.fareUrl;
}
Expand Down Expand Up @@ -130,14 +126,6 @@ public void setEmail(String email) {
this.email = email;
}

public String getBrandingUrl() {
return brandingUrl;
}

public void setBrandingUrl(String brandingUrl) {
this.brandingUrl = brandingUrl;
}

public String toString() {
return "<Agency " + this.id + ">";
}
Expand Down
26 changes: 0 additions & 26 deletions onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/Route.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ public final class Route extends IdentityBean<AgencyAndId> {

@CsvField(name = "eligibility_restricted", optional = true, defaultValue = "-999")
private int eligibilityRestricted = MISSING_VALUE;

@Deprecated
@CsvField(name="route_bikes_allowed", optional = true, defaultValue = "0")
private int routeBikesAllowed = 0;

/**
* 0 = unknown / unspecified, 1 = bikes allowed, 2 = bikes NOT allowed
Expand All @@ -72,9 +68,6 @@ public final class Route extends IdentityBean<AgencyAndId> {
@CsvField(optional = true)
private int sortOrder = MISSING_VALUE;

@CsvField(optional = true)
private String brandingUrl;

// Custom extension representing (bus) route accepts regional fare card.
// That is it has a vending machine on board.
@CsvField(optional = true, name = "regional_fare_card", defaultValue = "0")
Expand All @@ -96,7 +89,6 @@ public Route(Route r) {
this.textColor = r.textColor;
this.bikesAllowed = r.bikesAllowed;
this.sortOrder = r.sortOrder;
this.brandingUrl = r.brandingUrl;
this.eligibilityRestricted = r.eligibilityRestricted;
this.regionalFareCardAccepted = r.regionalFareCardAccepted;
}
Expand Down Expand Up @@ -172,16 +164,6 @@ public String getTextColor() {
public void setTextColor(String textColor) {
this.textColor = textColor;
}

@Deprecated
public int getRouteBikesAllowed() {
return routeBikesAllowed;
}

@Deprecated
public void setRouteBikesAllowed(int routeBikesAllowed) {
this.routeBikesAllowed = routeBikesAllowed;
}

/**
* @return 0 = unknown / unspecified, 1 = bikes allowed, 2 = bikes NOT allowed
Expand Down Expand Up @@ -210,14 +192,6 @@ public void setSortOrder(int sortOrder) {
this.sortOrder = sortOrder;
}

public String getBrandingUrl() {
return brandingUrl;
}

public void setBrandingUrl(String brandingUrl) {
this.brandingUrl = brandingUrl;
}

public boolean hasEligibilityRestricted() {
return eligibilityRestricted != MISSING_VALUE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ public void testAllFields() throws IOException {
assertEquals("route desc", route.getDesc());
assertEquals("FF0000", route.getColor());
assertEquals("0000FF", route.getTextColor());
assertEquals(1, route.getRouteBikesAllowed());
assertEquals(2, route.getBikesAllowed());
assertEquals("http://agency.gov/route", route.getUrl());
assertEquals(100, route.getSortOrder());
Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@
<version>1.3.0</version>
</dependency>
</dependencies>
<configuration>
<reportFormat>plain</reportFormat>
<consoleOutputReporter>
<disable>true</disable>
</consoleOutputReporter>
<statelessTestsetInfoReporter
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
<theme>UNICODE</theme>
</statelessTestsetInfoReporter>
</configuration>
</plugin>
</plugins>

Expand Down