Giter Site home page Giter Site logo

mozilla / mozillians Goto Github PK

View Code? Open in Web Editor NEW
288.0 47.0 329.0 37.01 MB

Mozilla community directory -- A centralized directory of all Mozilla contributors!

Home Page: https://mozillians.org/

License: BSD 3-Clause "New" or "Revised" License

Shell 0.13% Python 71.13% CSS 0.76% JavaScript 8.12% HTML 10.10% Makefile 0.11% Less 9.63%
mozillians mozilla community directory django

mozillians's Introduction

mozillians.org

A community directory for Mozillians to connect with each other.


NOTE

This project is deprecated in favor of Mozilla's People Directory

mozillians's People

Contributors

afindlay avatar akatsoulas avatar alexgibson avatar bharaththiruveedula-zz avatar comzeradd avatar dailycavalier avatar danielhartnell avatar davedash avatar davidw93 avatar dpoirier avatar fiji-flo avatar flamingspaz avatar gerv avatar glogiotatidis avatar hoosteeno avatar johngian avatar jpotts avatar mfrontczak avatar mte90 avatar ozten avatar pmclanahan avatar pyup-bot avatar readevalprint avatar rmaceissoft avatar sancus avatar sheeri avatar stephendonner avatar swarnava avatar tallowen avatar tofumatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mozillians's Issues

Logging branch

Hey @ozten -- is the logging branch off the main repo needed? The last commit is from August so I'm assuming it's all merged into master but the remote branch never got deleted. If it's not needed, could you delete it?

UI to invite users to groups can mislead users to add the wrong users

See https://bugzilla.mozilla.org/show_bug.cgi?id=1391632 (this is a copy)

When adding/inviting a user to a group the UI only let you see the User's full name.
Full names are not unique, and it is not possible to add a user with 100% assurance that you're adding the correct user (in particular when several users have the same full name).
You have to first add/invite them, then load the group members, click on their name and verify it's the correct user (and if not remove them from the group).

Not ideal/may lead to security troubles.

I would propose to do something such as using the user login/email or at least displaying it in the results when you look for the person to add. Megan (mbranson) may have better suggestions though

Reproduction:
URL where this happens (for example):
https://mozillians.org/en-US/group/cis_whitelist/edit/#invitations (field: "invites")

not able to signup on mozillian

I tried all the methods listed there.
For the email the link which i get in mail, it says that something wrong happened.
with google, it says you should use the most secure method for your account which is github.
with github, it says to enable 2FA.

Update Open Sans to include latin-extended charset

The Open Sans font family currently in use doesn't include the latin-ext charset. It has been fixed in #316 but seems to be broken again at some point.

I can submit a pull request with updates files but I'm not sure if we want to include cyrillic, cyrillic-ext, greek, greek-ext and vietnamese charsets as well.

vagrant is not stable

It should work as described in the installation instructions.
This is kind of important.

It takes me about a day to get it where I can code.
And heaven forbid I accidentally do a vagrant up and it tries to provision again over my working VM.
As new devs come to the project having this much downtime is wasteful.

:(

Multiplied error message displayed after doing account linking and not being active on the page

I don't have straight-forward steps to reproduce, but I will explain below how I manage to reproduce this issue:

  1. Add a Google Identity to your mozillians prod LDAP account
  2. Be inactive in mozillians for ~15 minutes
  3. Come back to mozillians and try to navigate to a different page (from Settings page)

Expected:
User can navigate to a different page.

Actual:
"This page isn't redirecting properly" message shown on page. Refreshing the page returns multiplied error messages, asking the user to login with LDAP.
moz prod error

Build a profile update / publish micro service.

In order to replace celery we want to build a small micro service that receives profile updates from mozillians and publishes them to CIS.

This service is responsible for:

  • receiving a single or a batch of JSONified profiles
  • invoking the CIS publisher to publish the profile
  • scaling to serve batch updates of all profiles for consistency
  • having minimal overhead
  • being highly concurrent

This service will not:

  • be responsible for consistency
    • a profile being sent will be published (if it can be validated)
    • rejecting an update has to be taken care of by CIS(!?)
    • retrying has to be taken care of by the client
  • re-implement the CIS publisher
    • changes like making the CIS publisher async need to be done upstream

Dependencies:

  • profile v2
  • k8s infrastructure (optional)

Invite emails are dumb

Invite emails are sending the username even though thats currently a meaningless field

Make GitHub username searchable again

With the move from GitHub username being an "External Account" to being a "Profile Identity" it looks like the user's GitHub username is no longer in their profile and as a result when searching in Mozillians for a GitHub username, it doesn't work.

This is an important feature in that it allows Mozillians to, given a GitHub user, determine their Mozillians profile.

cc @hwine

Incorrect IdP search results for whittieralaska

Test Condition

  • Open mozillians.org
  • Login as vouched Mozillian
  • Search for whittieralaska, i.e. search URL ishttps://mozillians.org/en-US/search/?q=whittieralaska

Expected Result

image

Actual Result

The users @jeffbryner and @syam3526 do not get any search results.
image

image

Additional Information

A search for the Mozillian's username successfully returns a result.

image

[staging] Github username not shown on user's profile page

STR:

  1. Login to mozillians with a github account
  2. Navigate to profile page

Expected:
Github username is shown (maybe in external accounts)

Actual:
Github username is not shown
github 2

Note: Searching after user's github username returns the profile correctly, but the username is not displayed in the profile page.

No alert error shown on top of Registration page, field error messages are different

STR:

  1. Login to mozillians with a new email -> registration page is shown
  2. On Registration page, leave all fields empty and click "Complete Registration"

Expected:
Error message displayed on top of the page ("Please correct the errors below. "), inline error messages for all required fields left empty is shown

Actual:
No error message shown on top of the page, inline input field error message shown only for the first empty field.

bad request 400

This error happends when we have the oauth in a container tab and the website eq. reps in another container tab.

steps to reproduce:

  1. open a site with i am in default container.
  2. open a new tab and another site and set the oauth page default to another container.
  3. when the first site redirects to 0auth it opens in the container set at step 2.
    the 0auth windows pops up but the redirect doesnt work. and get a bad request 400 error.

No reminder mail about NDA expiration status

Expected:

  • like in previous years, I should have received a mail letting me know my status in NDA group will expire

Actual:

  • I only got the mail with expiration - see below.
  • no notification before
  • status already expired and my presence in the group is pending approval

cc @nukeador

screenshot from 2018-03-30 17-29-39
screenshot from 2018-03-30 17-29-50

virtualenv installation - missing host names

After following virtualenv installation guide on Ubuntu 18 I get the following error when running tests:

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 29, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 62, in handle
    failures = test_runner.run_tests(test_labels)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/test/runner.py", line 601, in run_tests
    old_config = self.setup_databases()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/test/runner.py", line 546, in setup_databases
    self.parallel, **kwargs
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/test/utils.py", line 187, in setup_databases
    serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/base/creation.py", line 55, in create_test_db
    self._create_test_db(verbosity, autoclobber, keepdb)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/base/creation.py", line 164, in _create_test_db
    with self._nodb_connection.cursor() as cursor:
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 254, in cursor
    return self._cursor()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor
    self.ensure_connection()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
    self.connect()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
    self.connect()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 274, in get_new_connection
    conn = Database.connect(**conn_params)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (2005, "Unknown MySQL server host 'db' (2)")

I fixed it by adding 127.0.0.1 db to /etc/hosts. After it most of the tests started to fail with the following kind of error:

ERROR: test_profile_edit_vouched_links_to_groups_page (mozillians.phonebook.tests.test_profile_edit.ProfileEditTests)
A vouched user editing their profile is shown a link to the groups page.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/egoncearov/Dev/mozillians/mozillians/phonebook/tests/test_profile_edit.py", line 25, in test_profile_edit_vouched_links_to_groups_page
    user = UserFactory.create()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/factory/base.py", line 563, in create
    return cls._generate(enums.CREATE_STRATEGY, kwargs)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/factory/base.py", line 500, in _generate
    return step.build()
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/factory/builder.py", line 299, in build
    context=postgen_context,
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/factory/declarations.py", line 626, in call
    instance, create, context.value, **context.extra)
  File "/home/egoncearov/Dev/mozillians/mozillians/users/tests/__init__.py", line 47, in userprofile
    self.userprofile.save()
  File "/home/egoncearov/Dev/mozillians/mozillians/users/models.py", line 779, in save
    super(UserProfile, self).save(*args, **kwargs)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 808, in save
    force_update=force_update, update_fields=update_fields)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 848, in save_base
    update_fields=update_fields, raw=raw, using=using,
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 193, in send
    for receiver in self._live_receivers(sender)
  File "/home/egoncearov/Dev/mozillians/mozillians/common/signals.py", line 25, in handle_save
    super(SearchSignalProcessor, self).handle_save(sender, instance, **kwargs)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/haystack/signals.py", line 52, in handle_save
    index.update_object(instance, using=using)
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/haystack/indexes.py", line 284, in update_object
    backend.update(self, [instance])
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/haystack/backends/elasticsearch_backend.py", line 190, in update
    bulk(self.conn, prepped_docs, index=self.index_name, doc_type='modelresult')
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 190, in bulk
    for ok, item in streaming_bulk(client, actions, **kwargs):
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 162, in streaming_bulk
    for result in _process_bulk_chunk(client, bulk_actions, raise_on_exception, raise_on_error, **kwargs):
  File "/home/egoncearov/Dev/mozillians/venv/local/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 91, in _process_bulk_chunk
    raise e
ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f81cee97890>: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f81cee97890>: Failed to establish a new connection: [Errno -2] Name or service not known)

The fix seems to be adding 127.0.0.1 es to /etc/hosts.
Please check if /etc/hosts modifications should be added to virtualenv installation instructions

Puppet provisioning fails

I just cloned a repo and tried vagrant up, and saw this in the output:

[default] err: /Stage[main]/Slapd/File[/home/vagrant/mozillians/directory/devslapd/slapd.conf]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /home/vagrant/mozillians/directory/devslapd/slapd.conf.puppettmp_6677 at /tmp/vagrant-puppet/manifests/classes/slapd.pp:10
[default] 
[default] err: /Stage[main]/Slapd/File[/home/vagrant/mozillians/directory/devslapd/setup.sh]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /home/vagrant/mozillians/directory/devslapd/setup.sh.puppettmp_7319 at /tmp/vagrant-puppet/manifests/classes/slapd.pp:6

This was followed by lots of messages about things being skipped because of failed dependencies.

Vagrant needs virtualenv for development

This is why:
error: could not create '/usr/local/lib/python2.6/dist-packages/IPython': Permission denied

or you could fix that. But I want to be able to just pip things without thinking about bs.

Create a responsive template

We should use the lessframework to create a responsive template to implement all the views for taskboard (list, detail, add, admin).

Keep in mind the one mozilla responsive template may supersede this, so this code might get tossed. Budget your time, and structure your code accordingly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.