{"id":164,"date":"2019-11-22T18:34:06","date_gmt":"2019-11-22T18:34:06","guid":{"rendered":"https:\/\/blog.mozilla.org\/data\/?p=164"},"modified":"2020-03-30T18:37:37","modified_gmt":"2020-03-30T18:37:37","slug":"this-week-in-glean-glean-in-private","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/data\/2019\/11\/22\/this-week-in-glean-glean-in-private\/","title":{"rendered":"This Week in Glean: Glean in Private"},"content":{"rendered":"<p><em>(\u201cThis Week in Glean\u201d is a series of blog posts that the Glean Team at Mozilla is using to try to communicate better about our work. They could be release notes, documentation, hopes, dreams, or whatever: so long as it is inspired by Glean. You can find an<a href=\"https:\/\/mozilla.github.io\/glean\/book\/appendix\/twig.html\"> index of all TWiG posts online<\/a>.)<\/em><\/p>\n<p>In the Kotlin implementation of the Glean SDK we have a <code>glean.private<\/code> package. (( Ideally anything that was actually private in the Glean SDK would actually _be_ private and inaccessible, but in order to support our SDK magic (okay, so that the SDK could work properly by generating the Specific Metrics API in subcomponents) we needed something public that we just didn\u2019t want anyone to use. )) For a little while this week it looked like the use of the Java keyword <code>private<\/code> in the name was <a href=\"https:\/\/github.com\/mozilla\/glean\/pull\/482\">going to be problematic<\/a>. Here are some of the alternatives we came up with:<\/p>\n<ul>\n<li><code>glean.pvt<\/code><\/li>\n<li><code>glean.privat<\/code><\/li>\n<li><code>glean.p.r.i.v.a.t.e<\/code><\/li>\n<li><code>glean.thisIsntForYouDontUseIt<\/code><\/li>\n<li><a href=\"https:\/\/searchfox.org\/mozilla-central\/rev\/652014ca1183c56bc5f04daf01af180d4e50a91c\/js\/xpconnect\/src\/nsXPConnect.cpp#1211\"><code>glean.turn_off_all_security_so_that_viruses_can_take_over_this_computer<\/code><\/a><\/li>\n<li><code>glean.chutten.says.no<\/code><\/li>\n<li><code>glean.using.this.makes.janerik.weep<\/code><\/li>\n<li><code>glean.dont.use.or.md.BOOM<\/code><\/li>\n<li><code>glean.corporal<\/code> &#8211; Like <code>glean.private<\/code> but with a promotion<\/li>\n<\/ul>\n<p>Fortunately (or unfortunately) :mdboom (whom I might have to start calling Dr. Boom) <a href=\"https:\/\/github.com\/mozilla\/glean\/pull\/501\">came up with a way to make it work<\/a> with the package <code>private<\/code> intact, so we\u2019ll never know which one we would\u2019ve gone with.<\/p>\n<p>Alas.<\/p>\n<p>I guess I\u2019ll just have to console myself with the knowledge that we\u2019ve <a href=\"https:\/\/github.com\/mozilla\/glean\/releases\/tag\/v21.1.1\">deployed this fix to Fenix<\/a>, <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1591184\">Python bindings are becoming a reality<\/a>, and the first code supporting the FOGotype <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1591563\">might be landing<\/a> in mozilla-central. (More to come on all of that, later)<\/p>\n<p>:chutten<\/p>\n<p>(( This is a syndicated copy of <a href=\"https:\/\/chuttenblog.wordpress.com\/2019\/11\/22\/this-week-in-glean-glean-in-private\/\">the original post<\/a>. ))<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(\u201cThis Week in Glean\u201d is a series of blog posts that the Glean Team at Mozilla is using to try to communicate better about our work. They could be release &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/data\/2019\/11\/22\/this-week-in-glean-glean-in-private\/\">Read more<\/a><\/p>\n","protected":false},"author":1437,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[315988],"tags":[30,448297],"coauthors":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/posts\/164"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/users\/1437"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/tags?post=164"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blog.mozilla.org\/data\/wp-json\/wp\/v2\/coauthors?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}