Git Product home page Git Product logo

gramex-guide's Introduction

gramex-guide's People

Contributors

bhatsandeep avatar bkamapantula avatar gurudevkumar51 avatar jaidevd avatar pratapvardhan avatar radheyakale avatar sanand0 avatar shraddheya avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gramex-guide's Issues

File Missing

Add help metadata

  • Add metadata fields for FunctionHandler and FormHandler @sanand0
  • Update search/search.py to extracts this into /guide/search/help.json @sanand0
  • Modify the IDE UI to load and display this @jaidevd
  • Create icons (Abhishek)
  • Extend metadata to other pages (Sandeep/Jaindev/Anand)

Document Azure Active Directory

Add access_token > body > resource: https://graph.microsoft.com/

  auth/aad:
    pattern: /$YAMLURL/login
    handler: OAuth2
    kwargs:
      client_id: '1239bdca-----------------------------'
      client_secret: 'Pyum-----------------------------'
      authorize:
        url: 'https://login.microsoftonline.com/{TENANT_ID}/oauth2/authorize'
      access_token:
        url: 'https://login.microsoftonline.com/{TENANT_ID}/oauth2/token'
        body:
          grant_type: 'authorization_code'
          resource: https://graph.microsoft.com/
      user_info:
        url: 'https://graph.microsoft.com/v1.0/me/'
        headers:
          Authorization: 'Bearer {access_token}'
          Accept: 'application/json'
          Content-Type: 'application/json'

Fix documentation issues

DriveHandler:

PPTXHandler:

  • Source link is not working for Groups, Transition, Copy Slides, Position, Style, Image, Link, Text, Text Format, Table, Chart, Clone Shapes
  • There is no separate index for Create Certificate
  • Clone Shapes: the title shows copy slide example

Install:

  • gramex setup -–all command is not mentioned in Conda Install
  • After installation, docker run –it –name gramex –p 9988:9988 gramener/gramex /bin /bash is not working

UI Components not Working

I have installed gramex via Conda as well as via pip. I have also installed node.js and have set the Path Variable accordingly. However even after that ,the command "gramex setup ui" is still returning with an error :"Build failed with error code 1".
I am running Gramex in Windows 8.1 . I am hereby attaching the screenshots of the error I am facing.
UI_Error_Pic1
UI_Error_Pic2
UI_Error_Pic3

PUT is mandatory to create a model in ModelHandler

But the guide says that even POST can be used.

From the guide,

To create a model send a PUT/POST request to /model/<name>/ with the following URL Query Parameters or JSON Body Arguments...

But the handler creates new models only on PUT. See this.

Is there a reason why we don't allow POST to create new models?

Guide - broken links

FormHandler - URL

"modify: can be any expression/function that uses data – count of records edited and handler – handler.args contains data submitted by the user."

link to "data submitted" is http://localhost:9988/formhandler/(#formhandler-edits)

and must be http://localhost:9988/formhandler/#formhandler-edits (without the braces)

Auth - URL

/gitlab - URL

/gitlab fails at "Gitlab OAuth2 example" with a "The redirect URI included is not valid." error

/googleoauth2 - URL

ProxyHandler - URL

/demo/

it mirrors gramener.com/demo post-auth but fails to fetch CSS, JS dependencies

TwitterRestHandler - URL

400 error on fetching tweets, even post-auth

UIComponents - URL

remove /dashboards/quiz entry

g1 - URL

links to dist/* broken, at the end of the page.

languagetool - URL

broken: https://learn.gramener.com/guide/languagetool/languagetool/

drivehandler - URL

broken: https://learn.gramener.com/guide/drivehandler/drivehandler

Docker no directory /root/.config/gramexdata/apps/guide

When I run docker run --name gramex-instance -p 9988:9988 gramener/gramex

DEBUG   30-Mar 13:15:23 config PORT Loading config: /usr/local/lib/python3.7/site-packages/gramex/apps.yaml
ERROR   30-Mar 13:15:23 install PORT guide: no directory /root/.config/gramexdata/apps/guide

Login example in admin page

page: https://learn.gramener.com/guide/admin/

while auth is supported for accessing admin, it's stated as

The ADMIN_AUTH section is the same as specifying the auth: authorization on all admin pages. ref

and is unclear on the specifics.

adding an example as below will help:

import:
  admin:
    ...
    ADMIN_AUTH:
      login_url: /$YAMLURL/login_endpoint
    ...

Publish Support Matrix for Gramex

This needs to be updated for every version of Gramex Released
Structure should include at least..

  • Supported Operating System and versions thereof
  • Supported DB's and versions thereof
  • Python Version
  • Supported Browsers

And any other relevant information that could create contention

Python Debugger Error

In the Gramex Guide , Debugging Gramex Section , there is a part referring :
"You can use WinPDB – a cross-platform GUI for pdb – on Gramex using:

conda install -c jacob-barhak -c anaconda winpdb
winpdb.bat /path/to/gramex/main.py "

But running "conda install -c jacob-barhak -c anaconda winpdb" gives comaptibility error as shown in the screenshot(link shared) :- https://www.dropbox.com/s/ac8tr3mxisqbjv2/Debugger_error.jpeg?dl=0

My Machine Specifications:- Windows 8.1, Python - 3.7, gramex version - 1.68 .

Dashboard Tutorial File Missing

In the Gramex Guide , the Dashboard Tutorial link :- https://learn.gramener.com/guide/tutorials/dashboard
shows File Missing.
However just in the next Section that is the "Charts Tutorial" , there is a link of reference to the "previous" tutorial or the Dashboard Tutorial.
There the link to the Dasboard Tutorial is working. I am pasting the correct link of the Dashboard Tutorial here, please update the incorrect link :-
https://learn.gramener.com/guide/tutorials/dashboards/

'utf-8' codec can't decode byte 0xdf in position 9

When I run gramex init I get the following issue:

Traceback (most recent call last):
  File "/home/edhiraj/.miniconda/envs/delivery/bin/gramex", line 10, in <module>
    sys.exit(commandline())
  File "/home/edhiraj/.miniconda/envs/delivery/lib/python3.7/site-packages/gramex/__init__.py", line 177, in commandline
    callback(**kwargs)
  File "/home/edhiraj/.miniconda/envs/delivery/lib/python3.7/site-packages/gramex/install.py", line 650, in init
    _copy(source, target, template_data=data)
  File "/home/edhiraj/.miniconda/envs/delivery/lib/python3.7/site-packages/gramex/install.py", line 617, in _copy
    result = Template(result).generate(**template_data)
  File "/home/edhiraj/.miniconda/envs/delivery/lib/python3.7/site-packages/tornado/template.py", line 302, in __init__
    reader = _TemplateReader(name, escape.native_str(template_string),
  File "/home/edhiraj/.miniconda/envs/delivery/lib/python3.7/site-packages/tornado/escape.py", line 217, in to_unicode
    return value.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdf in position 9: invalid continuation byte

However, the project does get initialised

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.