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

Make Wikibase tag configurable in the manifest #3359

Closed
Nikerabbit opened this issue Nov 25, 2020 · 14 comments · Fixed by #4573
Closed

Make Wikibase tag configurable in the manifest #3359

Nikerabbit opened this issue Nov 25, 2020 · 14 comments · Fixed by #4573
Assignees
Labels
Type: Bug Issues related to software defects or unexpected behavior, which require resolution. wikibase Related to wikidata/wikibase integration
Milestone

Comments

@Nikerabbit
Copy link

Nikerabbit commented Nov 25, 2020

To Reproduce

Same as in #3354 when actually trying to save edits.

Current Results

No edits are being made.

This appears in the logs:

openrefine_1        | 16:26:03.794 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (2044ms)
openrefine_1        | 16:26:03.867 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (73ms)
openrefine_1        | 16:26:03.934 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (67ms)
openrefine_1        | 16:26:04.008 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (74ms)
openrefine_1        | 16:26:04.091 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (83ms)
openrefine_1        | 16:26:04.177 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (86ms)
openrefine_1        | 16:26:04.267 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (90ms)
openrefine_1        | 16:26:04.351 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (84ms)
openrefine_1        | 16:26:04.433 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (82ms)
openrefine_1        | 16:26:04.434 [..baseapi.WbEditingAction] We are editing too fast. Pausing for 8203 milliseconds. (1ms)

Expected Behavior

Edits succeed or there is a clear error message in the user interface.

Screenshots

Versions

  • Operating System: Debian 10
  • Browser Version: Google Chrome 87.0.4280.66
  • JRE or JDK Version: openjdk version "1.8.0_212"
    OpenJDK Runtime Environment (IcedTea 3.12.0) (Alpine 8.212.04-r0)
    OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
  • OpenRefine: Version 3.5-beta [96789f9]
  • MediaWiki: 1.35.0

Datasets

Additional context

I believe I can manually create the openrefine-3.5 change tag, and then it may work (did not test yet), but it would be nice if this was clearly documented or even better automated. If this is documented somewhere, I'll note that I did not see such a thing and I've been reading and googling stuff for a bit while debugging various issues.

Since the version number is included, it's likely to break again in the future once openrefine is updated.

@Nikerabbit Nikerabbit added Type: Bug Issues related to software defects or unexpected behavior, which require resolution. Status: Pending Review Indicates that the issue or pull request is awaiting review by project maintainers or collaborators labels Nov 25, 2020
@tfmorris
Copy link
Member

That's a strange error message since there's no OpenRefine 3.5 release https://github.com/OpenRefine/OpenRefine/releases

@Nikerabbit
Copy link
Author

Sorry, I forgot to fill in the version information, but I'm using the master branch due to #3354.

@Nikerabbit
Copy link
Author

The edit tag is defined in

String tag = "openrefine";
Pattern pattern = Pattern.compile("^(\\d+\\.\\d+).*$");
Matcher matcher = pattern.matcher(RefineServlet.VERSION);
if (matcher.matches()) {
tag += "-"+matcher.group(1);
}
this._tags = Arrays.asList(tag);
and it's just openrefine-major.minor.

@wetneb
Copy link
Member

wetneb commented Nov 25, 2020

We should decide whether:

  1. we require Wikibase instances to have a tag of the desired format (openrefine-$VERSION)
  2. or we make this tag configurable in the manifest
  3. or we can somehow apply the tag only if it exists in the target Wikibase instance

I am thinking 2. or 3. could work. For 3., I would try to make the first edit with the tag, and if that fails because the tag does not exist, try again without the tag (and do all further edits without the tag).

@wetneb wetneb added wikibase Related to wikidata/wikibase integration and removed Status: Pending Review Indicates that the issue or pull request is awaiting review by project maintainers or collaborators labels Feb 2, 2021
@wetneb wetneb self-assigned this Jan 25, 2022
@wetneb wetneb changed the title MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. Make Wikibase tag configurable in the manifest Jan 25, 2022
wetneb added a commit to wetneb/OpenRefine that referenced this issue Feb 26, 2022
wetneb added a commit to wetneb/OpenRefine that referenced this issue Feb 26, 2022
wetneb added a commit to wetneb/OpenRefine that referenced this issue Feb 26, 2022
wetneb added a commit that referenced this issue Mar 1, 2022
* Add tag and edit speed parameters in manifest. Closes #3359

* Make it possible not to apply any tag

* Document new parameter in docs
@wetneb wetneb added this to the 3.6 milestone Mar 1, 2022
@wetneb
Copy link
Member

wetneb commented Mar 1, 2022

This will be released in 3.6. The syntax to use in the Wikibase manifest is documented here:
https://docs.openrefine.org/next/manual/wikibase/configuration#tag

@anchardo
Copy link

Hi,

I was not able to edit/add data to my Wikibase instance with OpenRefine 3.5.2 & Manifest 1.0 and got this error message:
09:54:05.293 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.5" is not allowed to be manually applied. (324ms)

So, reading this issue, I've installed OR 3.6.2 and adapted my manifest to use the 2.0 template, but I still face the same issue:
12:00:07.260 [..ting.EditBatchProcessor] MediaWiki error while editing [badtags]: The tag "openrefine-3.6" is not allowed to be manually applied. (161ms)

What can I do to solve this problem? I was logged in with a "normal" account and not a bot, could this have an impact?

(For your information I will be on vacation from tonight so I will not be able to answer/make new tests before the end of July)

@ostephens
Copy link
Member

As far as I know on Wikidata you would have to use a bot account (see https://docs.openrefine.org/manual/wikibase/overview#manage-wikidata-account) but I don't know if that would apply to all Wikibases or if it's just a Wikidata requirement

@wetneb
Copy link
Member

wetneb commented Jul 1, 2022

I would say:

  • either you have not created an openrefine-3.6 tag on your Wikibase instance
  • or when creating it you did not specify that it could be applied manually when making edits

@regisrob
Copy link
Contributor

I tried to add new items from OpenRefine and faced exactly the same issue as @Nikerabbit (MediaWiki error while editing [badtags]: The tag "openrefine-3.6" is not allowed to be manually applied).
I am using OpenRefine 3.6-rc1.
I was not able to populate the Wikibase schema using OpenRefine 3.5 due to several errors (@wetneb I could file a separate issue for that).

I agree with the remark about the lack of documentation. It took me a little while to figure out what the term "tag" refers to and how to add a new one in Mediawiki. Further explanation in the doc would be very helpful (especially in the Requirements section). It seems a bit weird to have to create a tag in Mediawiki for every version of OpenRefine (as Wikidata did: https://www.wikidata.org/wiki/Special:Tags)).

The documentation does not say whether the tag property in the Manifest is required or not. But it seems to be the case since my problem was solved after adding the "tag" in my Manifest (and create it in Mediawiki of course).

One last thing: I do not get the point of the Gif screenshot in Check the format of the manifest section in the docs.

@wetneb
Copy link
Member

wetneb commented Jul 22, 2022

Hi @regisrob, thanks a lot for this precious feedback!
Because this issue is already closed, your comment is unlikely to be acted on: it would be great if you could create an issue explaining why the current documentation is problematic (basically your last three paragraphs).

Of course if you feel like it you could even propose a pull request which edits the docs: at the bottom of each documentation page there is a link which should help you do that in very little effort. No need to open an issue beforehand.

@regisrob
Copy link
Contributor

Thx @wetneb, I could create an issue to report the problem I faced with OpenRefine 3.5 (if still relevant) and will do my best to propose a PR to edit the docs, at least a first draft 😉

@D063520
Copy link

D063520 commented Feb 22, 2023

Hi,

I'm running the latest version of wikibase-release-pipeline wmde10.env, the latest version of the openrefine-reconciliation service and the latest version of Open Refine and I got this issue. I had to create the tag and then it worked. Is this expected?

@anchardo
Copy link

Almost exactly 2 years later, I've switched to a new version of OpenRefine and I'm back to the same problem [the tag is not allowed to be manually applied...] and the same difficulty in finding documentation for that.

So, I'm writing it clearly here, if you encounter the same difficulty: you need to modify this page: https://[your.wikibase]/wiki/Special:Tags
Like this:

image

@wetneb
Copy link
Member

wetneb commented Jun 20, 2024

This should be the last time you have to do this as from 3.9 on it will make untagged edits if the tag does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues related to software defects or unexpected behavior, which require resolution. wikibase Related to wikidata/wikibase integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants