sugarlabs / sugar-toolkit-gtk3

Sugar Learning Environment, Activity Toolkit, GTK 3.
GNU Lesser General Public License v2.1
21 stars 80 forks source link

Fix: #378 Issue non-fatal warnings on missing metadata #380

Closed rhl-bthr closed 6 years ago

rhl-bthr commented 6 years ago

Fixed in this PR: #378 Changes made:

Suggestion: All tags independent of whether they are necessary for aslo should issue a warning. Kindly let me know, I will update the PR

Tested

quozl commented 6 years ago

You've added to the XOPackager class. I hadn't thought of that.

Better would be to check config in cmd_dist_xo, as at that point the file is already parsed and available.

Another place would be class ActivityBundle which will help with aslo-v3 workflow which (at one stage) proposed not to require use of the dist_xo target by developers.

Regarding what tags must be present;

rhl-bthr commented 6 years ago

Thank you for the detailed review and guidance

Update:

Sources for looking up tags: (Thanks to @quozl)

quozl commented 6 years ago

Thanks. Reviewed.

I'm not so sure about the AppStream changes, as there are almost no activities that have AppStream metadata (e.g. only Browse), so we would end up with lots of warnings in logs as Sugar starts up for no real benefit. I don't think anybody is using our AppStream metadata anyway. Anyway, I did notice;

I've also updated the specification https://github.com/sugarlabs/sugar-toolkit-gtk3/commit/7e216a04d579d6f0e8283e5d3975bf72edd2f67b.

rhl-bthr commented 6 years ago

@quozl Thanks once again for the detailed review

Changes made:

Changes in 7e216a0 are for optional metadata. Kindly let me know if checks for optional metadata should also be added.

Kindly review If no more changes are to be made, shall I squash all commits.

quozl commented 6 years ago

Thanks. Reviewed.

Rebased. Rewrote messages for consistency with others. Moved some checks into else clauses where the same metadata key was tested.

https://github.com/sugarlabs/sugar-toolkit-gtk3/commit/cc2357c787cb30d02e1568a2bf23dc18c367468f