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

Wikidata Bridge 활성화 #324

Closed
lens0021 opened this issue Dec 4, 2019 · 9 comments · Fixed by femiwiki/nomad#43
Closed

Wikidata Bridge 활성화 #324

lens0021 opened this issue Dec 4, 2019 · 9 comments · Fixed by femiwiki/nomad#43
Assignees
Labels
enhancement New feature or request wikibase

Comments

@lens0021
Copy link
Member

lens0021 commented Dec 4, 2019

$wgWBClientSettings['dataBridgeEnabled'] = true;
$wgWBClientSettings['dataBridgeHrefRegExp'] = '^http://localhost/w/(Item:(Q[1-9][0-9]*)).*#(P[1-9][0-9]*)$';

Blocked by #285

@lens0021 lens0021 added the enhancement New feature or request label Dec 4, 2019
@lens0021
Copy link
Member Author

<span data-bridge-edit-flow="overwrite">[[Item:Q1#P1]]</span>을 문서에 추가하여 클릭했을 때 다음과 같은 창만 뜹니다:

image

로그입니다:

load.php?lang=ko&modules=jquery%2Coojs-ui-core&skin=femiwiki&version=brj1z:130 GET http://0.0.0.0/w/%ED%8A%B9%EC%88%98:%EA%B0%9C%EC%B2%B4%EB%8D%B0%EC%9D%B4%ED%84%B0/ITEM:Q1.json 404 (Not Found)
send @ load.php?lang=ko&modules=jquery%2Coojs-ui-core&skin=femiwiki&version=brj1z:130
ajax @ load.php?lang=ko&modules=jquery%2Coojs-ui-core&skin=femiwiki&version=brj1z:125
jQuery.ajax @ load.php?lang=ko&modules=jquery%2Coojs-ui-core&skin=femiwiki&version=brj1z:144
jQuery.<computed> @ load.php?lang=ko&modules=jquery%2Coojs-ui-core&skin=femiwiki&version=brj1z:127
value @ VM7088:239
(anonymous) @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:209
wrappedActionHandler @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:46
dispatch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:41
boundDispatch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:39
(anonymous) @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:204
wrappedActionHandler @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:46
dispatch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:41
boundDispatch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:39
launch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:220
value @ VM7088:243
(anonymous) @ VM7088:244
VM7088:236 Uncaught (in promise) Error: Entity flagged missing in response.
    at <anonymous>:240:24
I @ VM7088:236
n @ VM7088:236
e @ VM7088:237
(anonymous) @ VM7088:240
Promise.then (async)
dispatch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:41
boundDispatch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:39
launch @ load.php?lang=ko&modules=wikibase.client.data-bridge.app&skin=femiwiki&version=59aey:220
value @ VM7088:243
(anonymous) @ VM7088:244

@lens0021
Copy link
Member Author

$wgWBRepoSettings['dataBridgeEnabled'] = true;가 빠진 것 같아 추가해봤지만 별 차이 없습니다.

@lens0021
Copy link
Member Author

정규식에 괄호를 잘못 써서 생긴 오류로 확인했습니다.

@lens0021
Copy link
Member Author

lens0021 commented Aug 1, 2020

단순 문자열인 경우에는 수정이 되나 한정어가 있거나 문자열이 아닌 경우에 에러가 나면서 안 나옵니다.

@lens0021 lens0021 reopened this Aug 1, 2020
@lens0021
Copy link
Member Author

lens0021 commented Aug 5, 2020

위키미디어 테스트 위키에 브릿지가 활성화되어 참고 가능해져 링크 달아놓습니다.
https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/595542/

@lens0021
Copy link
Member Author

위 예시 https://test.wikipedia.org/wiki/Data_bridge 를 방문해 보면 알 수 있지만 현실세계에서는 거의 대부분의 경우에 편집이 불가합니다... 그래서 개발이 더 되길 기다리고 있습니다.

@lens0021
Copy link
Member Author

위에 적은 overwrite는 아직 지원이 안 되는 data-flow이고

<span data-bridge-edit-flow="single-best-value">[[Item:Q1#P1]]</span>

으로 추가해야 테스트가 됩니다. 그런데 정규식이 바뀌어서 고쳐야 합니다(wikimedia/mediawiki-extensions-Wikibase@ad3f41c)

브릿지에 감지되는 링크를 루아 모듈에 추가하는 건 다른 이슈에서 다루고 이 이슈는 여기까지만 해도 될 것 같습니다.

lens0021 added a commit that referenced this issue Jun 16, 2021
@lens0021 lens0021 self-assigned this Jun 16, 2021
@lens0021
Copy link
Member Author

lens0021 commented Jun 18, 2021

@lens0021 lens0021 moved this to Done in femiwiki.com Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wikibase
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant