Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
Metrics
Onionoo
Commits
ab719908
Commit
ab719908
authored
Sep 04, 2018
by
Karsten Loesing
Browse files
Remove previously deprecated "as_number" field.
Still related to
#23713
.
parent
4029f0fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
ab719908
...
...
@@ -7,6 +7,8 @@
-
Change "3_months" graphs to "6_months" graphs in all documents
containing history objects.
-
Remove the "fingerprint" parameter.
-
Remove the previously deprecated "as_number" field from details
documents.
# Changes in version 6.2-1.17.1 - 2018-08-17
...
...
src/main/java/org/torproject/onionoo/docs/DetailsDocument.java
View file @
ab719908
...
...
@@ -204,33 +204,14 @@ public class DetailsDocument extends Document {
private
String
as
;
@Deprecated
private
String
asNumber
;
public
void
setAs
(
String
as
)
{
this
.
as
=
escapeJson
(
as
);
}
@Deprecated
public
void
setAsNumber
(
String
asNumber
)
{
this
.
asNumber
=
escapeJson
(
asNumber
);
}
@Deprecated
public
void
setAsAndAsNumber
(
String
asNumber
)
{
this
.
as
=
escapeJson
(
asNumber
);
this
.
asNumber
=
escapeJson
(
asNumber
);
}
public
String
getAs
()
{
return
unescapeJson
(
this
.
as
);
}
@Deprecated
public
String
getAsNumber
()
{
return
unescapeJson
(
this
.
asNumber
);
}
private
String
asName
;
public
void
setAsName
(
String
asName
)
{
...
...
src/main/java/org/torproject/onionoo/server/ResponseBuilder.java
View file @
ab719908
...
...
@@ -299,9 +299,6 @@ public class ResponseBuilder {
case
"as"
:
dd
.
setAs
(
detailsDocument
.
getAs
());
break
;
case
"as_number"
:
dd
.
setAsNumber
(
detailsDocument
.
getAsNumber
());
break
;
case
"as_name"
:
dd
.
setAsName
(
detailsDocument
.
getAsName
());
break
;
...
...
src/main/java/org/torproject/onionoo/writer/DetailsDocumentWriter.java
View file @
ab719908
...
...
@@ -96,7 +96,7 @@ public class DetailsDocumentWriter implements DocumentWriter {
detailsDocument
.
setCountryName
(
detailsStatus
.
getCountryName
());
detailsDocument
.
setRegionName
(
detailsStatus
.
getRegionName
());
detailsDocument
.
setCityName
(
detailsStatus
.
getCityName
());
detailsDocument
.
setAs
AndAsNumber
(
detailsStatus
.
getAsNumber
());
detailsDocument
.
setAs
(
detailsStatus
.
getAsNumber
());
detailsDocument
.
setAsName
(
detailsStatus
.
getAsName
());
if
(
detailsStatus
.
isRunning
())
{
detailsDocument
.
setConsensusWeightFraction
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment