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

Removed sections.offsets table #1081

Merged
merged 3 commits into from
Nov 2, 2018
Merged

Conversation

clarakosi
Copy link
Member

@clarakosi clarakosi commented Nov 2, 2018

Removed use of sections.offsets table and modified getSections to use data-parsoid instead.

Bug T206048

Removed use of sections.offsets table and modified code to use data-parsoid instead
@Pchelolo
Copy link
Contributor

Pchelolo commented Nov 2, 2018

This only removes it from fallback tables. There's also latest tables, need to remove as well.

Look: https://github.com/wikimedia/restbase/blob/master/sys/parsoid.js#L261
https://github.com/wikimedia/restbase/blob/master/projects/wmf_default.yaml#L130

Removed section.offsets from latest tables and from all projects
Copy link
Contributor

@Pchelolo Pchelolo left a comment

Choose a reason for hiding this comment

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

a bit of nit picking, otherwise good

@@ -18,12 +18,12 @@ paths:
allows us to contact you quickly. Email addresses or URLs
of contact pages work well.

By using this API, you agree to Wikimedia's
By using this API, you agree to Wikimedia's
Copy link
Contributor

Choose a reason for hiding this comment

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

i know it's bad to have trailing spaces, but this change is entirely unrelated to the purpose of this commit/PR. could you please revert this?

We try to avoid stashing unrelated changes into pull requests, it convolutes the history and git blame becomes useless.

[Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and
[Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy).
Unless otherwise specified in the endpoint documentation
below, content accessed via this API is licensed under the
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

@@ -18,12 +18,12 @@ paths:
allows us to contact you quickly. Email addresses or URLs
of contact pages work well.

By using this API, you agree to Wikimedia's
By using this API, you agree to Wikimedia's
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

[Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and
[Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy).
Unless otherwise specified in the endpoint documentation
below, content accessed via this API is licensed under the
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

@@ -18,12 +18,12 @@ paths:
allows us to contact you quickly. Email addresses or URLs
of contact pages work well.

By using this API, you agree to Wikimedia's
By using this API, you agree to Wikimedia's
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

@@ -18,12 +18,12 @@ paths:
allows us to contact you quickly. Email addresses or URLs
of contact pages work well.

By using this API, you agree to Wikimedia's
By using this API, you agree to Wikimedia's
Copy link
Contributor

Choose a reason for hiding this comment

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

Idem

[Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and
[Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy).
Unless otherwise specified in the endpoint documentation
below, content accessed via this API is licensed under the
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

@@ -19,15 +19,15 @@ paths:
allows us to contact you quickly. Email addresses or URLs
of contact pages work well.

By using this API, you agree to Wikimedia's
By using this API, you agree to Wikimedia's
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

[Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and
[Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy).
Unless otherwise specified in the endpoint documentation
below, content accessed via this API is licensed under the
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
[CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses,
and you irrevocably agree to release modifications or
additions made through this API under these licenses.
additions made through this API under these licenses.
Copy link
Contributor

Choose a reason for hiding this comment

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

idem

Reverted trailing spaces in projects/ files to original spacing
@Pchelolo
Copy link
Contributor

Pchelolo commented Nov 2, 2018

Let's wait for travis, but LGTM.

in the meantime, could you please create a subtask for the ticket, saying to delete section-offsets keyspaces in labs, dev and prod and assign it to @eevans ? i will get back on the ticket with a list of keyspace names.

@Pchelolo
Copy link
Contributor

Pchelolo commented Nov 2, 2018

LGTM!

@Pchelolo Pchelolo merged commit 55187fc into wikimedia:master Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants