-
Notifications
You must be signed in to change notification settings - Fork 144
issue-#895 #2379
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
issue-#895 #2379
Conversation
|
Thanks for cleaning up the PR 👍
I'm not sure whether that's a good idea. #1800 discusses some privacy issues related to showing public lists on the sentence page.
In your old version you've added an additional But I can see now, that you've actually changed the design of the tag module by listing each tag on its own line. As with the displaying of all public lists, I think that needs further discussion. In general I would suggest to focus on the specific issue and don't mix in further changes if they aren't necessary to fix the problem.
You just need to |
I see, I still think if someone has put his list on public its public information. But I am not here to decide it. Just in my opinion for usersit could be beneficial to see all list with this sentences.
Same argument then above, but also your call. I think you will discuss it with the other developers. Just let me know. The changes are all minor, so if you have decided how to proceed, i will change it. Other then that looking forward for your feedback and for more work to do XD |
src/View/Helper/ListsHelper.php
Outdated
| } else | ||
| { | ||
| echo '<div class="section md-whiteframe-1dp">'; | ||
| /* @translators: header text on the sidebar of a sentence page */ | ||
| echo $this->Html->tag('h2', __('Lists')); | ||
| echo '</div>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the UI by displaying now an empty Lists block on all sentence pages when the sentence doesn't belong to any list. I'm not sure if that is what we want.
|
@AndiPersti Thanks for the time your time to look over my code and all the advises. The simple ones I already changed. (PR request if I done everything, maybe tomorrow) I added some few questions for clarification. |
I don't see any questions. |
|
@AndiPersti hi i meant I commented on your comments. wwww |
|
Ok now most should be resolved. (the space between x and listname i forgot, but push it in a min). If the sentence is in no List i still show the UI Module, because I wasnt sure if you think it should get deleted. w8 for your response.
I will further try it. For now just wanted to give an update on my workflow. And sry for spelling errors or style errors in messages or code. still learning XD I think the code should be something like this: `<?php class AddEnumValueToListVisibility extends AbstractMigration }` but I am not sure because i dont know how to test it XD @AndiPersti did I miss something from your comments before? If yes sry, you have to remind me again |
Yes, that's a good catch because I've forgot about collaborative lists. 👍 But there's still another little issue: If a user is the creator of a list but the list is editable by no one, there should be no remove button. So we have two cases when the button should be displayed:
It looks like you run the command from the But the code you've posted is a good starting point. |
I tryed it from every location, even updated migration tried backslash slash.. anyway other then that I fixed this:
and this
|
should close Tatoeba#895 and should close Tatoeba#1800 cakephp migration file still missing see comment
You get the error message so it looks like you somehow changed the line endings in I suppose running In order to fix this problem you should convert the line endings back: If everything works again, you can remove |
|
About the permission error: I forgot that you have to reset the executable bit on the file: |
…this time with migration file
|
OK why easy if I can make it difficult. after reinstalling imouto it works fine. I hope with the last pull or push thx guys specialy thanks for all your help @AndiPersti looking forward to hear your feedback |
to see the delete button you should be at least logged in because public+ and anyone the delete button was still displayed
naming for public+ is still pending XD
You could just change the condition on line 217 in the model to use the And this won't break calling (A rather crude way to test this is adding the line debug($this->SentencesLists->find()->where(['visibility' => 'public']));to one of the actions in the You should see in the debugging output the resulting SQL query. Compare that with changing the debugging line to debug($this->SentencesLists->find()->where(['visibility' => ['listed', 'public']]));There is also a debugging plugin called DebugKit which would simplify debugging and e.g. would show you all SQL queries for a page but you need to install it in your local environment (and also modify some parts in the code; see the docs).) |
@bakananbanjin You can use triple backquotes to format code blocks. |
see in commments for further info
|
ok again an other update :) other than that I tryed to fix all mentioned issues |
|
Hello 😊 I wondered what’s the status of this pull request, so I took a closer look and added a few (minor) comments. @bakananbanjin Did you have time to think about a good wording for the tooltip? What about the tests you mentioned you wanted to write? Do you need some help from us, or you just need some more time? |
|
@jiru
And to be honest I thought the test case would be the next assignment after we finished this one (I looked a little bit in to test cases of tatoeba, but I got confused because it was just datasets). But i really would love to get this issue resolved soon! We spent now exactly 1 month on it, I was thinking this would be a job for a day or 2. greetings |
|
In general, when questions about wording come up, please add me (@alanfgh) to the discussion.
This wording does need to be improved, but I'd like to understand the context better. Could you please explain when this tooltip would appear? |
Do you mean the test fixtures inside The code for the actual tests is inside |
|
thats new too. :( |
This is unrelated to your PR. See #2438.
All in all I think it looks ok. Are you still trying to add some tests? |
|
Here's my suggestion for the tooltips of each visibility option. @alanfgh, do you confirm this is okay? (see @AndiPersti screenshot above for where these tooltips will be displayed) Private Unlisted Listed Public |
|
Looks good. I would just standardize on "accessible to" rather than "accessible by" and maybe make the last option more explicit: _Private Unlisted Listed Public But you might find the wording for the last item too long. |
…suggestions
|
@bakananbanjin Good job with this PR, it is finally ready for merge 👍 I will publish it on tatoeba.org in one week so that UI translators have some time to translate the new strings. Thank you! 😊 |
This is a bit shorter. Maybe seeing this will trigger an even more concise wording in someone's mind. The list is accessible to anyone and is listed on the "Browse by list" page, as well as on each listed sentence's page. |
Thanks for testing. |









this should close #895
its me again, I made some more adjustments. For starts I show now all public lists and own lists instead of just the users own lists. I think its for the user more interesting to see in which (public) lists the sentences is. he only can remove them if he got the remove right. also the options to remove sentences are only visible for members.
other than that no changes in the old functionality. I changed according to your @AndiPersti suggestions.
except the first because i didnt knew what you ment
ok still looking forward to hear from you guys what you think.
(and one more question how does i update a pull request if i make further changes? just press the button again?)
everyone who goes to bed now like me I wish a good night everyone else a nice day morning and evening XD