Code Monkey home page Code Monkey logo

amaxa's People

Contributors

davidmreed 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

amaxa's Issues

Errors with credentials

Hi, I also recently update amaxa with the newer version and i have a TypeError with the credentials(i use : username and Password) template.
Here, the example of the template:
credentialTemplate

here, the error that i have.
Error

Thx.

Design pluggable system for extending available transforms

We'd like to make it possible to extend Amaxa's transform system with simple pluggable modules.

Initial design sketch:

  • An operation could specify an import path to a callable
  • That callable is a factory, which accepts some metadata about the transform it's being asked to do (such as the field name and type)
  • It returns a dict of transform names and callables that Amaxa can then apply.

Genesis of this proposal is discussion between David and Kyle Crouse about the infrastructure needed to support 3rd-party data obfuscation capabilities.

See also #29.

Allow extraction of the same object as both parent and child

I've tried an extraction where a base object is defined in the beginning of the op file with the extract: ids: attribute. However, I also need to extract this object down the line a a child object. Listing the same object further down in the op file, this time with the extract: descendents: true attribute did not work as expected - the only extracted record of that object was the anchor record. Is this a limitation or a bug?

Thanks!
Eran

Character encoding issue

On Windows 10,
When try to extract the data (Case object) using smart, get the following error:

Case: starting extraction..
Unexpected exception 'charmap' codec can't encode character '\u0308' in position 3736: character maps to <undefined> occurred.

Please suggest solution for this issue.

Error while Loading in my sandbox

Hi, i did different an Extract operations for my SObjects and i obtained different (Sobject.csv) file(In a sequential way). But i was trying to Load all the Sobjects the same way i did with the extraction process. But during the Load, i had this kind of error.

erreur

How do i solve this problem?
Thx!

Data Obfuscation as a transform step

[Submitted by Kyle Crouse on GitLab]

This may be out of scope for this tool, but it could be useful to be able to obfuscate sensitive data prior to loading (or even during the export so that the sensitive data is never even saved to disk). Something like Faker coupled with the SF field metadata would make it fairly easy to generate realistic fake data.
If you do think it's out of scope for the tool, maybe some sort of plugin system for transforms could allow it to live on its own? Obviously neither the obfuscation transform nor the plugin system is a small undertaking, but I think they could make this tool even more useful.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Running on Windows errors when using sfdx credentials

When running on Windows the following error is received when using sfdx credentials:

[DBG]: PS C:\Users\Will> amaxa .\data\data-move.yml --credentials .\data\cred.yml
amaxa : Traceback (most recent call last):
At line:1 char:1
+ amaxa .\data\data-move.yml --credentials .\data\cred.yml
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

  File "D:\obj\Windows-Release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 193, in _run_module_as_main
  File "D:\obj\Windows-Release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 85, in _run_code
  File "C:\portapps\Python\Scripts\amaxa.exe\__main__.py", line 9, in <module>
  File "c:\portapps\python\lib\site-packages\amaxa\__main__.py", line 55, in main
    credential_loader.load()
  File "c:\portapps\python\lib\site-packages\amaxa\loader\core.py", line 67, in load
    step()
  File "c:\portapps\python\lib\site-packages\amaxa\loader\credentials.py", line 20, in _load
    self._load_v2()
  File "c:\portapps\python\lib\site-packages\amaxa\loader\credentials.py", line 146, in _load_v2
    capture_output=True,
  File "D:\obj\Windows-Release\37amd64_Release\msi_python\zip_amd64\subprocess.py", line 472, in run
  File "D:\obj\Windows-Release\37amd64_Release\msi_python\zip_amd64\subprocess.py", line 775, in __init__
  File "D:\obj\Windows-Release\37amd64_Release\msi_python\zip_amd64\subprocess.py", line 1178, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

adding "shell=True" to the subprocess call in _load_v2 in credentials.py seems to resolve:

                ["sfdx", "force:org:display", "--json", "-u", sfdx_username],
                encoding="utf-8",
                capture_output=True,
                shell=True,

Pricebooks + Pricebook Entries

[Submitted by Brianna Brown on GitLab]

Hi there,
Thank you for your responsiveness as well as for this awesome tool.
I was wondering if you have any advice about how to handle the Product, Pricebook and PricebookEntry trifecta? I haven't determined a way to import this data using Amaxa. Because a pricebookentry needs to be first added to the Default Pricebook - i'm struggling to figure out how to import pricebookentry because of the nature of the standard object.
Without the upsert function, it's not possible to add the pricebookentries to an existing pricebook (ie - the standard pricebook which is a salesforce default record).
I was wondering if you had any tips for dealing with this scenario. I do realize it's a specific case, and one of the more difficult relationships to navigate.
Thanks for your help!
-Brianna

Reverse child-parent extraction fails on master-detail relationship

When extracting in reverse order, the import fails when trying to load a child of a master-parent relationship, where the field was defined reparenting not allowed.
Example: We have an object called Employee, which has child File records, tied in a master detail. The Employee__c field on the File object is defined as reparenting not allowed.
If I try to extract just a specific File using a specific Id, followed by extracting the parent Employee record (using extract: descendents: true - reverse import), the operation fails: "Employee__c is a dependent lookup, but not updateable".
I'm assuming this happens because the operation is reverse and that identifies as an update to the Employee__c field, not insert. Which isn't allowed when reparenting is disabled for the relationship. Is there any possible solution or workaround for this?

Thank you!

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.