-
Notifications
You must be signed in to change notification settings - Fork 1.3k
In depictions selection screen, suggest recently selected items #3634
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
Comments
Can it be assigned to me? |
If I get it straight, this is for step 2 of "upload" search. If so, you want the items shown with checkboxes, as they are in step 3, or with their depictions and descriptions? |
This functionality has been broken for contributions since 13/06/19, partially fixed in #3650 If somebody could tell me what
a "direct category" is then that would help, as far as I can tell nobody ever writes anything to this preference. @maskaravivek @johnnyrev a new Room Dao will have to be added so that when a user selects a depiction we save that to the database. When search term is empty we, if following the example of category model, would take the 25 most recently selected from the database to show them in a list. There is however a lingering question of precedence for me, do we show items from nearby locations first here or recently selected items first. @nicolas-raoul |
My guess would be that "direct" was related to campaigns, and thus can be removed as the campaigns feature was removed years ago. I would put nearby items before recent items. |
@nicolas-raoul apologies for going off topic here but campaigns have been removed? This is only on beta but it looks like the feature is still very much there. Can we remove it? @misaochan |
Sorry I was referring to a different feature which tagged all uploads using
a particular category such as "Wiki Loves Earth 2011"
The campaign message is to be kept 🙂
|
Thanks for the info @nicolas-raoul @johnnyrev are you still working on this? I have availability as I think I have already commented on another of your tickets |
@johnnyrev It's good to know that you and @dafnith are working on this. I just wanted to let you know that in case you feel stuck somewhere, feel free to ask for help here :) |
@sivaraam Thanks a lot, we appreciate it! |
It seems that in the category selection screen does not show anything when no search string is entered. It shows a red message that there are no results. I tried to upload a picture multiple times and somehow it worked. When I tried again the red message appeared again. Is this normal? I am also wondering what do you mean by "Items that were selected during previous uploads." |
@dafnith We merged Structured Commons work into the master branch and fixed a few bugs. Please git pull, git switch master, rebuild and test again, if you still see the red message please post a screenshot here. "previous uploads" refers to the images that the user has recently uploaded. I encourage you to check the category selection screen and see how it works :-) |
@nicolas-raoul Thank you for your response! |
@dafnith Please create a new branch (named for instance |
@nicolas-raoul Thank you! |
Structured data was a branch where Depictions(multilingual captions/descriptions) were implemented, it has been merged to master for a good few weeks now |
@sivaraam we actually got stuck trying to save the selected depictions in the database. Our method that inserts recent depictions in recent_depictions table uses a list with RecentDepictions objects.
We want to call this method from UploadModel.java file but we don't know how to convert the DepictedItem object to RecentDepictions object
|
I think you should be persisting the From fun updateCategoryCount(item: CategoryItem) {
var category = categoryDao.find(item.name)
// Newly used category...
if (category == null) {
category = Category(null, item.name, Date(), 0)
}
category.incTimesUsed()
categoryDao.save(category) // Note how the Category object itself is saved here
} Others could comment better about this. PS: You're more likely to get a faster response when you don't ping specific people :) |
We specifically don't want to use DepictedItems. It is generally good practice to have separate models for different domains of your application and this illustrates that well. Were we to save DepictedItems, if we follow the example of Category, we would need to add
to the DepictedItems and this would pollute that class as these fields only matter in the database layer of our application, ie nobody else cares about
|
Excuse me for this delayed comment, but due to some problems with the implementation process and the restricted time that we have this period of time, me and @dafnith aren't able to keep up with this issue. So, feel free to assign this issue to someone who is able to spend more time and get this thing done. By the way thanks for all the information and help that you gave us. It was a very good experience working with you! Our excuses again! |
@johnnyrev Ok. Thanks for letting us know. |
Anyone who is interested with this issue, please make sure you followed previously opened PR #3771 |
@nicolas-raoul @neslihanturan i want to work on this issue |
@Prince-kushwaha It is yours, thanks! |
@nicolas-raoul how many max number of recent depicts Selected item i save in Room database |
10 should be good. Thanks! |
in room database how delete all element except first 10 element |
For now, the depictions selection screen does not show anything when no search string is entered.
Instead, it would be good if it could suggest:
This feature exists in the category selection activity, so that activity can be studied for inspiration.
The text was updated successfully, but these errors were encountered: