Giter VIP home page Giter VIP logo

partners.ubuntu.com's Introduction

CircleCI build status Code coverage

This is the code for partners.ubuntu.com, which provides the admin area for managing Partners data (partners.ubuntu.com/admin) and the partners API endpoint (partners.ubuntu.com/partners.json)

Local development site

To use this script you must have Docker installed.

Run the server

From within the project folder, run:

./run  # Start the development server

This will run the site on http://localhost:8003.

For more detailed local development instructions, see HACKING.md.

License

The content of this project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license, and the underlying code used to format and display that content is licensed under the LGPLv3 by Canonical Ltd.


nottrobin is this project's champion.

With ♥ from Canonical.

partners.ubuntu.com's People

Contributors

0atman avatar anthonydillon avatar barrymcgee avatar caleb-ellis avatar carkod avatar deadlight avatar grahambancroft avatar jkfran avatar jpmartinspt avatar meltysnow avatar mtruj013 avatar nottrobin avatar pmahnke avatar renovate-bot avatar renovate[bot] avatar samhotep avatar solazio avatar sowasred2012 avatar steverydz avatar tbille avatar willmoggridge avatar

Stargazers

 avatar  avatar  avatar

Watchers

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

partners.ubuntu.com's Issues

Releases are failing (juju version mismatch?)

Releases to partners.ubuntu.com are failing - e.g.: https://deploy-logs.admin.canonical.com/index/prodstack-comms/ubuntu-partners-mojo-ps45/mojo/2018-07-05.log:

2018-07-05 16:29:05 [ERROR] ERROR unrecognized command: juju set
- Updating settings with build label:
- ubuntu-partners-app->build_label: xxxx
[ERROR] in python_helpers.py:
- command: ['juju', 'set', 'ubuntu-partners-app', 'archive_filename=build.tar.gz', 'build_label=xxxx', 'code_assets_uri=https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_xxxx/partners.ubuntu.com']
- return code: 1

This looks like the CLI interface for Juju is different than expected, which likely means the Juju version is different.

Report a bug redirects to launchpad.net

Summary

Report a bug on this site should redirect to github issues

Process

  • ./run
  • 0.0.0.0:8003
  • go to the bottom of the page
  • click on report a bug

Current and expected result

Actual behavior

Report a bug on this site link redirects to launchpad

Expected behavior

Report a bug on this site link redirects to a new github issue on the project

Partner programme capitalisation needs to be consistent

We need to be consistent with the capitalisation used in our partner programmes. According to the copy guidelines and agreed with Tom, we should only capitalise product names. There are a few places that need to be updated on our partners site:

OpenStack Interoperability Lab should be OpenStack interoperability lab
Charm Partner Programme should be Charm partner programme
Ubuntu Channel Partner Programme should be Ubuntu channel partner programme

-- from a bug filed by Ellen Arnold on www.u.c

Rename `cms` app to `webapp`

All our other Django projects have a single application called "webapp". This should be no exception.

The trouble is that this requires migrating all the cms.* model objects in the database.

See #105 for an idea on that.

Picklist values on form

Not exactly a bug but rather a small change on the partner contact us form:

Please change picklist values of "interested in" to:
Certified Public Cloud
Channel/SI/Reseller
IHV - Integrated Hardware Vendor
ISV - Integrated Software Vendor
Internet of Things
OEM
Other

We had a lot of outdated options.

Cheers,
Lucia

Merge partnerwebsite with cms

Why are there two applications, partnerwebsite and cms, inside this project?

We should consolidate into one called webapp, as with our other projects.

Wrong position images

Summary

The position of the images of the sections World leaders in the cloud and Driving innovation in IoT and on PCs are to height

Process

Current and expected result

Expect the images to be at vertically centered in each sections

Screenshot

screenshot-2017-10-11 ubuntu partners

No explanation of coloured rings on retail partners map

1. Go to the “Ubuntu retail partners” page.
2. Look at the map.

What you see:

  • A mixture of purple, orange, and black rings.
  • Nothing on the page that explains the different colours.
  • No change when hovering or clicking.

partners ubuntu com-retail-map

What you should see: either

  • the rings are all the same colour; or
  • a legend explains the different colours; or
  • each ring explains its colour when hovered or clicked; or
  • (least likely) the map no longer exists.

Reported from: https://partners.ubuntu.com/programmes/retail

Fix deployments

We can't currently deploy to partners.ubuntu.com. Fix that.

Images linked without HTTPS

Many image URLs for partner logos are linked from the assets server, but with HTTP rather than HTTPS. This means that when these logos are displayed on www.ubuntu.com, they can lead to the page looking less-than-secure because of the insecure images. E.g.: https://www.ubuntu.com/server.

Where possible, we should make sure logos are linked using HTTPS.

Error running make run

When I run make run on the latest from master. I get:

$ make run
docker start ubuntu-partners-postgres || make start-db
ubuntu-partners-postgres
make sass-watch
make[1]: Entering directory '/home/anthonydillon/Documents/Canonical/Git/ubuntu-partners'
docker start ubuntu-partners-sass || docker run --name ubuntu-partners-sass -d -v `pwd`:/app ubuntudesign/sass sass --debug-info --watch /app/static/css
ubuntu-partners-sass
make[1]: Leaving directory '/home/anthonydillon/Documents/Canonical/Git/ubuntu-partners'

=======================================
Running server on http://localhost:8003
=======================================

docker run --tty --interactive --volume `pwd`:/app --publish 8003:8000 --link ubuntu-partners-postgres:postgres ubuntudesign/ubuntu-partners
Validating models...

Unhandled exception in thread started by <function wrapper at 0x7fc1d0cd7500>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 93, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 101, in inner_run
    self.validate(display_num_errors=True)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 310, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 34, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 196, in get_app_errors
    self._populate()
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 75, in _populate
    self.load_app(app_name, True)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 97, in load_app
    app_module = import_module(app_name)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
ImportError: No module named markdown_deux

Checked for a update requirements target in the makefile but couldn't see one.

Remove database dumps from repository

Remove partner.json and cms.json. Don't just delete them, purge them. This way we can happily open up the repository.

If they're really needed, put them somewhere else private so we can pull them down as needed.

Find a Partner shouldn't rely on JS-only functionality

Summary

The "Find a partner" page relies on JavaScript and the JS code is dependant on deprecated YUI.

We should investigate replacing it with a server-side search (some of the functionality used for generating JSON feeds could be repurposed for this).

The frontend can then make use of JS but have a more robust no-JS fallback.

Update assets links to v1

Summary

A lot of links still use the old version of the assets server url, update all the links to the v1 asset links

Example

  • https://assets.ubuntu.com/sites/ubuntu/latest/u/img/logos/logo-ubuntu-orange.svg
    Becomes
  • https://assets.ubuntu.com/v1/c6679b95-logo-ubuntu-orange.svg
    In the code : {{ ASSET_URL_SERVER }}c6679b95-logo-ubuntu-orange.svg

Set-up /programmes/reseller redirect

I recently renamed /programmes/reseller to /programmes/channel - a redirect should be setup to ensure existing links to that page do not 404.

Partner logo blocks - "see all" link generation

Context

On pages like http://partners.ubuntu.com/programmes/public-cloud the "See all [partner type] partners >" links are broken - just linking to the root of the search with no params.

Process

Visit:
http://partners.ubuntu.com/programmes/public-cloud

Expected result

Clicking "See all public cloud partners ›" should take you through to a filtered list of partners

Current result

Clicking "See all public cloud partners ›" takes you through to an unfiltered list of partners.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

File: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Configuration option compatibility.python should be a json object

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.